How can I move (or create another) publish button?

How do I create a “publish” button to put in a custom metabox?

Or if you can point me to the code that creates the current publish box, that’d help me out.

Read More

-attempting to simplify my custom post type-

Related posts

Leave a Reply

2 comments

  1. Dig in Core

    All admin UI pages use a core function for a reason:

    submit_button( $text = NULL, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = NULL );
    

    There’s also get_submit_button() in case you want to return instead of print the button.

  2. <button type="submit">Your Text</button> should about do it for you…it’s just a submit button, nothing special. It’s generated by post_submit_meta_box(), specifically submit_button( __( 'Publish' ), 'primary', 'publish', false, array( 'tabindex' => '5', 'accesskey' => 'p' ) );.