twentyten_attachment_height

過濾鉤子
apply_filters( 'twentyten_attachment_height', 900 )
引數
  • (int) $ The default attachment height in pixels. Default 900.
    Required:
定義位置
  • wp-content/themes/twentyten/loop-attachment.php , line 140
相關勾子
twentyten_attachment_sizetwentyfifteen_attachment_sizetwentysixteen_attachment_sizetwentynineteen_attachment_sizetwentythirteen_attachment_size
相關方法
get_the_attachment_linkwp_get_attachment_imageget_attachment_innerhtmlwp_generate_attachment_metadatawp_attachment_isclean_attachment_cache
引入
Twenty Ten 1.0
棄用
-

twentyten_attachment_height – 此函式用於指定 Twenty Ten 主題中附件的高度: 該函式返回附件的高度,可用於以正確的尺寸顯示附件。

過濾Twenty Ten的預設附件高度。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$attachment_height = apply_filters( 'twentyten_attachment_height', 900 );
$attachment_height = apply_filters( 'twentyten_attachment_height', 900 );
$attachment_height = apply_filters( 'twentyten_attachment_height', 900 );

常見問題

FAQs
檢視更多 >