twentytwenty_end_of_post_meta_list

動作鉤子
do_action( 'twentytwenty_end_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 486
相關勾子
twentytwenty_start_of_post_meta_listtwentytwenty_post_meta_location_single_toptwentytwenty_disallowed_post_types_for_meta_outputtwentytwenty_site_logotwentytwenty_post_meta_location_single_bottom
相關方法
register_and_do_post_meta_boxesget_post_meta_by_idget_default_post_to_editunregister_post_metaget_post_metaget_boundary_post_rel_link
引入
Twenty Twenty 1.1 Added the `$post_meta` and `$location` parameters.
棄用
-

twenty_end_of_post_meta_list 是WordPress主題Twenty Twenty中的一個動作鉤。它允許開發者將額外的文章元資訊新增到單篇文章的文章元資訊列表的末尾。

在文章元HTML顯示後啟動。

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

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

常見問題

FAQs
檢視更多 >