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.

Read More

Any ideas?

Related posts

Leave a Reply

2 comments

  1. 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;
    }
    
  2. I know this is an old post, but I just cleaned up the code if anyone finds this thread via search like I did.

    function change_publish_button( $translation, $text ) {
        if ( 'CUSTOM_POST_TYPE' == get_post_type() && ($text == 'Publish' || $text == 'Update') ) {
            return 'Save';
        } else {
            return $translation;
        }
    }