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
檢視更多 >