submitpost_box

动作钩子


do_action( 'submitpost_box', $post )
参数
  • (WP_Post)
    $post
    Post object.
    Required:
定义位置
  • wp-admin/edit-form-advanced.php
    , line 677
引入
2.5.0
弃用

Fires before meta boxes with ‘side’ context are output for all post types other than ‘page’.

The submitpost box is a meta box with ‘side’ context, so this hook fires just before it is output.

do_action( 'submitpost_box', $post );