submitpost_box action-hookWP 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.


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 object.


Since 2.5.0 Introduced.

Where the hook is called

In file: /wp-admin/edit-form-advanced.php
wp-admin/edit-form-advanced.php 677
do_action( 'submitpost_box', $post );

Where the hook is used in WordPress

Usage not found.