twentyfourteen_attachment_size

過濾鉤子
apply_filters( 'twentyfourteen_attachment_size', array( 810, 810 )
引數
  • (array) $dimensions { An array of height and width dimensions. @type int $height Height of the image in pixels. Default 810. @type int $width Width of the image in pixels. Default 810. }
    Required:
定義位置
  • wp-content/themes/twentyfourteen/functions.php , line 439
相關勾子
twentyfifteen_attachment_sizetwentyten_attachment_sizetwentythirteen_attachment_sizetwentysixteen_attachment_sizetwentynineteen_attachment_size
相關方法
wp_get_attachment_image_sizeswp_count_attachmentswp_get_attachment_imageget_the_attachment_linkwp_delete_attachment_fileswp_generate_attachment_metadata
引入
Twenty Fourteen 1.0
棄用
-

twentyfourteen_attachment_size: 這是一個自定義函式,用於設定二十四節氣主題中附件的最大尺寸。它用於確定圖片和其他媒體在網站上顯示時的大小。

過濾預設的Twenty Fourteen附件大小。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$attachment_size = apply_filters( 'twentyfourteen_attachment_size', array( 810, 810 ) );
$attachment_size = apply_filters( 'twentyfourteen_attachment_size', array( 810, 810 ) );
$attachment_size     = apply_filters( 'twentyfourteen_attachment_size', array( 810, 810 ) );

常見問題

FAQs
檢視更多 >