How to add a SAVE button to replace PUBLISH on a custom post type?

I have a custom post type called ‘contacts’. I want want to remove the status, post date and change the button from PUBLISH to SAVE. From what I can tell this may not be possible without changing core files (please correct me if I am wrong).

So, instead of trying to hack the PUBLISH metabox, I have the ability to remove the PUBLISH meta box all together using the Access Manager plugin. But I need to know how to readd a SAVE button that works the same way PUBLISH would.

Any ideas?

2 Answers
2

Not mine but modified from here.
But if you pop this into functions.php or a plugin it will work.

add_filter( 'gettext', 'change_publish_button', 10, 2 );

function change_publish_button( $translation, $text ) {
if ( 'yourcustomposttype' == get_post_type())
if ( $text == 'Publish' )
    return 'Save';

return $translation;
}

Leave a Comment