twentytwenty_post_meta_location_single_top

過濾鉤子
引數
  • (array) $args { @type string $author @type string $post-date @type string $comments @type string $sticky }
    Required:
定義位置
  • wp-content/themes/twentytwenty/inc/template-tags.php , line 290
相關勾子
twentytwenty_post_meta_location_single_bottomtwentytwenty_end_of_post_meta_listtwentytwenty_start_of_post_meta_listtwentytwenty_get_localized_font_family_typestwentytwenty_site_logo
相關方法
get_the_post_thumbnail_captionenqueue_legacy_post_comments_block_stylesget_nav_menu_locationsget_post_format_stringthe_post_thumbnail_captionwp_nav_menu_locations_meta_box
引入
Twenty Twenty 1.0
棄用
-

twenty_post_meta_location_single_top 是WordPress主題Twenty Twenty中的一個過濾器。它允許開發者改變單篇文章頁面上顯示的文章元資訊的位置。

過濾文章元資訊的可見性。

使用這個過濾器可以隱藏文章的元資訊,如作者、發帖日期、評論、是否粘連狀態。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$post_meta = apply_filters(
$post_meta = apply_filters(
$post_meta = apply_filters(

常見問題

FAQs
檢視更多 >