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



do_meta_boxes › WordPress动作钩子

Since3.0.0
已弃用n/a
do_action( 'do_meta_boxes', $post_type, 'normal', $post )
参数: (3)
  • (string) $post_type Post type of the post on Edit Post screen, 'link' on Edit Link screen, 'dashboard' on Dashboard screen.
    Required: Yes
  • (string) $context Meta box context. Possible values include 'normal', 'advanced', 'side'.
    Required: Yes
  • (WP_Post|object|string) $post Post object on Edit Post screen, link object on Edit Link screen, an empty string on Dashboard screen.
    Required: Yes
定义在:
文档:

Fires after meta boxes have been added.

Fires once for each of the default meta box contexts: normal, advanced, and side.





源码

do_action( 'do_meta_boxes', $post_type, 'normal', $post );