Popular Categories

How to rename Publish button in WordPress Admin?

There are scenarios where you want the WordPress Admin to behave differently, specially for the custom post types. Imagine you have custom post type called ‘contacts’ and you want to change the button from PUBLISH to SAVE. So how to achieve this without changing the core files?

Add the following code to your functions.php:

add_filter( ‘gettext’, ‘change_publish_button’, 10, 2 );

function change_publish_button( $translation, $text ) {
/* yourcustomposttype should be replaced with your custom post type, e.g posts, contacts etc */
if ( ‘yourcustomposttype’ == get_post_type())
if ( $text == ‘Publish’ )
return ‘Save’;

return $translation;

Note: Make sure you make a copy of your function.php before placing the code. Just incase if you break something you can always bring it back.