twentytwelve_attachment_size

过滤钩子
apply_filters( 'twentytwelve_attachment_size', array( 960, 960 )
参数
  • (array) $size { @type int The attachment height in pixels. @type int The attachment width in pixels. }
    Required:
定义位置
  • wp-content/themes/twentytwelve/image.php , line 105
相关勾子
twentyeleven_attachment_sizetwentyten_attachment_sizetwentysixteen_attachment_sizetwentyfifteen_attachment_sizetwentyfourteen_attachment_size
相关方法
get_the_attachment_linkwp_delete_attachment_fileswp_get_attachment_image_sizeswp_get_attachment_imageget_attachment_linkget_attachment_icon
引入
Twenty Twelve 1.0
弃用
-

twentytwelve_attachment_size: 这个函数为”Twenty Twelve”WordPress主题设置附加图片的大小。用户可以通过修改该函数来改变附件图片的大小。

过滤要使用的图像附件大小。

$attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) );

常见问题

FAQs
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-18 00:27:15

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: