twentythirteen_attachment_size

過濾鉤子
apply_filters( 'twentythirteen_attachment_size', array( 724, 724 )
引數
  • (array) $size { @type int The attachment height in pixels. @type int The attachment width in pixels. }
    Required:
定義位置
  • wp-content/themes/twentythirteen/functions.php , line 610
相關勾子
twentyfifteen_attachment_sizetwentysixteen_attachment_sizetwentyten_attachment_sizetwentyfourteen_attachment_sizetwentynineteen_attachment_size
相關方法
get_the_attachment_linkthe_attachment_linkwp_get_attachment_image_sizeswp_delete_attachment_filesthe_attachment_linkswp_get_attachment_image
引入
Twenty thirteen 1.0
棄用
-

twentythirteen_attachment_size: 該函式為”Twenty Ten”WordPress主題設定附件圖片的大小。使用者可以通過修改該函式來改變附件圖片的大小。

過濾要使用的圖片附件尺寸。

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

常見問題

FAQs
檢視更多 >