twentytwenty_show_categories_in_entry_header

过滤钩子
apply_filters( 'twentytwenty_show_categories_in_entry_header', true )
参数
  • (bool) $ Whether to show the categories in header. Default true.
    Required:
定义位置
  • wp-content/themes/twentytwenty/template-parts/entry-header.php , line 30
相关勾子
twentytwenty_starter_contenttwentytwenty_social_icons_maptwentytwenty_get_elements_arraytwentytwenty_site_logo_argstwentytwentytwo_block_pattern_categories
相关方法
the_category_head
引入
Twenty Twenty 1.0
弃用
-

twenty_show_categories_in_entry_header 是WordPress主题Twenty Twenty中的一个函数。它决定是否要在单篇文章的条目标题部分显示与文章相关的类别。

允许子主题和插件过滤条目标题中的类别显示。

$show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true );

常见问题

FAQs
查看更多 >