I’m attempting to vary the textual content of the publish button to avoid wasting
perform change_publish_button( $translation, $textual content ) {
if ( $textual content == 'Publish' )
return 'Save';
return $translation;
}
add_filter( 'gettext', 'change_publish_button', 10, 2 );
I’m attempting to run the above code but it surely would not change the textual content of the publish button, can anybody please inform what’s incorrect with this code or recommend any new methodology. Thanks prematurely
Replace
I wish to change the publish button proven within the determine beneath.