wpseek.com
WordPress开发者和主题制作者的搜索引擎



add_meta_boxes_{$post_type} › WordPress动作钩子

Since3.0.0
已弃用n/a
do_action( "add_meta_boxes_{$post_type}", $post )
参数:
  • (WP_Post) $post Post object.
    Required: Yes
定义在:
文档:

Fires after all built-in meta boxes have been added, contextually for the given post type.

The dynamic portion of the hook name, $post_type, refers to the post type of the post.

Possible hook names include:

  • add_meta_boxes_post
  • add_meta_boxes_page
  • add_meta_boxes_attachment




源码

do_action( "add_meta_boxes_{$post_type}", $post );