twenty_twenty_one_can_show_post_thumbnail

过滤钩子
参数
  • (bool) $show_post_thumbnail Whether to show post thumbnail.
    Required:
定义位置
  • wp-content/themes/twentytwentyone/inc/template-functions.php , line 113
相关勾子
twentynineteen_can_show_post_thumbnailtwenty_twenty_one_svg_icons_socialtwenty_twenty_one_content_widthend_fetch_post_thumbnail_htmltwenty_twenty_one_attachment_size
相关方法
get_the_post_thumbnaildelete_post_thumbnailwp_ajax_set_post_thumbnailget_the_post_thumbnail_urlthe_post_thumbnailget_the_post_thumbnail_caption
引入
Twenty Twenty-One 1.0
弃用
-

twenty_twenty_one_can_show_post_thumbnail:此函数用于确定是否可以为给定的文章显示文章缩略图。

设置是否可以显示文章缩略图。

return apply_filters(

常见问题

FAQs
查看更多 >