submitpage_box
Fires before meta boxes with 'side' context are output for the 'page' post type.
The submitpage box is a meta box with 'side' context, so this hook fires just before it is output.
Usage
add_action( 'submitpage_box', 'wp_kama_submitpage_box_action' ); /** * Function for `submitpage_box` action-hook. * * @param WP_Post $post Post object. * * @return void */ function wp_kama_submitpage_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
submitpage_box
wp-admin/edit-form-advanced.php 701
do_action( 'submitpage_box', $post );