do_action( 'post_submitbox_misc_actions', WP_Post $post )

Fires after the post time/date setting in the Publish meta box.


$post WP_Post
WP_Post object for the current post.

Top ↑


File: wp-admin/includes/meta-boxes.php. View all references

do_action( 'post_submitbox_misc_actions', $post );

Top ↑


Version Description
4.4.0 Added the $post parameter.
2.9.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by Collins Mbaka

    Below is a basic example that will add a select box right before the submit button.

    add_action( 'post_submitbox_misc_actions', 'wpdocs_post_submitbox_misc_actions' );
    function wpdocs_post_submitbox_misc_actions( $post ) {
    <div class="misc-pub-section my-options">
    	<label for="my_custom_post_action">My Option</label><br/>
    	<select id="my_custom_post_action" name="my_custom_post_action">
    		<option value="1">First Option goes here</option>
    		<option value="2">Second Option goes here</option>

You must log in before being able to contribute a note or feedback.