submitpost_box
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.
Usage
add_action( 'submitpost_box', 'wp_kama_submitpost_box_action' ); /** * Function for `submitpost_box` action-hook. * * @param WP_Post $post Post object. * * @return void */ function wp_kama_submitpost_box_action( $post ){ // action... }
- $post(WP_Post)
- Post object.
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
In file: /wp-admin/edit-form-advanced.php
submitpost_box
wp-admin/edit-form-advanced.php 712
do_action( 'submitpost_box', $post );