post_submitbox_start
Fires at the beginning of the publishing actions section of the Publish meta box.
Usage
add_action( 'post_submitbox_start', 'wp_kama_post_submitbox_start_action' );
/**
* Function for `post_submitbox_start` action-hook.
*
* @param WP_Post|null $post WP_Post object for the current post on Edit Post screen, null on Edit Link screen.
*
* @return void
*/
function wp_kama_post_submitbox_start_action( $post ){
// action...
}
- $post(WP_Post|null)
- WP_Post object for the current post on Edit Post screen, null on Edit Link screen.
Changelog
| Since 2.7.0 | Introduced. |
| Since 4.9.0 | Added the $post parameter. |
Where the hook is called
post_submitbox_start
wp-admin/includes/meta-boxes.php 359
do_action( 'post_submitbox_start', $post );
wp-admin/includes/meta-boxes.php 1131
do_action( 'post_submitbox_start', null );