twentytwenty_start_of_post_meta_list

動作鉤子
do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location )
引數
  • (int) $post_id Post ID.
    Required:
  • (array) $post_meta An array of post meta information.
    Required:
  • (string) $location The location where the meta is shown. Accepts 'single-top' or 'single-bottom'.
    Required:
定義位置
  • wp-content/themes/twentytwenty/inc/template-tags.php , line 359
相關勾子
twentytwenty_end_of_post_meta_listtwentytwenty_starter_contenttwentytwenty_social_icons_maptwentytwenty_disallowed_post_types_for_meta_outputtwentytwenty_post_meta_location_single_top
相關方法
start_post_rel_linkregister_and_do_post_meta_boxesunregister_post_metaregister_post_metaget_post_meta_by_id_draft_or_post_title
引入
Twenty Twenty 1.1 Added the `$post_meta` and `$location` parameters.
棄用
-

twentytwenty_start_of_post_meta_list:這是一個動作鉤子,可用於在文章迴圈中的文章元資訊(例如作者姓名和釋出日期)之前新增內容。

在文章元HTML顯示前觸發。

允許輸出額外的文章元資訊,由子主題和外掛新增。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location );
do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location );
do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location );

常見問題

FAQs
檢視更多 >