twentyfifteen_attachment_size

过滤钩子
apply_filters( 'twentyfifteen_attachment_size', 'large' )
参数
  • (string) $image_size Image size. Default 'large'.
    Required:
定义位置
  • wp-content/themes/twentyfifteen/image.php , line 44
相关勾子
twentyten_attachment_sizetwentysixteen_attachment_sizetwentynineteen_attachment_sizetwentyfourteen_attachment_sizetwentythirteen_attachment_size
相关方法
wp_get_attachment_image_sizesget_the_attachment_linkwp_delete_attachment_fileswp_get_attachment_imagewp_edit_attachments_querythe_attachment_link
引入
Twenty Fifteen 1.0
弃用
-

twentyfifteen_attachment_size – 这个函数用来设置Twenty Fifteen主题中附件的大小。它用于确定媒体库中图片的尺寸。

过滤默认的”Twenty Fifteen”图片附件尺寸。

$image_size = apply_filters( 'twentyfifteen_attachment_size', 'large' );

常见问题

FAQs
查看更多 >