twentytwenty_disallowed_post_types_for_meta_output

过滤钩子
apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' )
参数
  • (array) $ Array of post types.
    Required:
定义位置
  • wp-content/themes/twentytwenty/inc/template-tags.php , line 264
相关勾子
twentytwenty_start_of_post_meta_listtwentytwenty_end_of_post_meta_listtwentytwenty_social_icons_maptwentytwenty_post_meta_location_single_toptwentyfourteen_featured_posts_before
相关方法
wp_nav_menu_item_post_type_meta_boxget_all_post_type_supports
引入
Twenty Twenty 1.0
弃用
-

twenty_disallowed_post_types_for_meta_output 是WordPress主题Twenty Twenty中的一个函数。它定义了一个文章类型的列表,这些文章的元信息,如作者和日期,不应该被显示。

过滤文章类型数组。

这个过滤器可以用来隐藏子主题或插件注册的文章、页面或自定义文章类型的元信息。

$disallowed_post_types = apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' ) );

常见问题

FAQs
查看更多 >