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显示前触发。

允许输出额外的文章元信息,由子主题和插件添加。

do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location );

常见问题

FAQs
查看更多 >