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显示后启动。

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

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

常见问题

FAQs
查看更多 >