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中的一個函式。它決定是否要在單篇文章的條目標題部分顯示與文章相關的類別。

允許子主題和外掛過濾條目標題中的類別顯示。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true );
$show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true );
$show_categories = apply_filters( 'twentytwenty_show_categories_in_entry_header', true );

常見問題

FAQs
檢視更多 >