post_submitbox_minor_actions
Fires after the Save Draft (or Save as Pending) and Preview (or Preview Changes) buttons in the Publish meta box.
Usage
add_action( 'post_submitbox_minor_actions', 'wp_kama_post_submitbox_minor_actions_action' ); /** * Function for `post_submitbox_minor_actions` action-hook. * * @param WP_Post $post WP_Post object for the current post. * * @return void */ function wp_kama_post_submitbox_minor_actions_action( $post ){ // action... }
- $post(WP_Post)
- WP_Post object for the current post.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
wp-admin/includes/meta-boxes.php 97
do_action( 'post_submitbox_minor_actions', $post );