do_meta_boxes

动作钩子


do_action( 'do_meta_boxes', $post_type, 'normal', $post )
参数
  • (string)
    $post_type
    Post type of the post on Edit Post screen, ‘link’ on Edit Link screen,
    ‘dashboard’ on Dashboard screen.
    Required:
  • (string)
    $context
    Meta box context. Possible values include ‘normal’, ‘advanced’, ‘side’.
    Required:
  • (WP_Post|object|string)
    $post
    Post object on Edit Post screen, link object on Edit Link screen,
    an empty string on Dashboard screen.
    Required:
定义位置
  • wp-admin/includes/meta-boxes.php
    , line 1631
引入
3.0.0
弃用

在添加元数据框后触发。

对每个默认的元组框的上下文触发一次:normal、advanced和side。

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