Aurangajeb

Change WPUF Save Draft Button text

Jul 28th, 2021 (edited)
977
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /** Change WPUF Save Draft Button text **/
  2. function change_wpuf_draft_button_text ( $string ) {
  3.     if ($string == "Save Draft") { // String you want to change
  4.         $string = "Draft & Save Post"; // Insert your string
  5.     }
  6.     return $string;
  7. }
  8. add_filter( 'gettext', 'change_wpuf_draft_button_text' );
RAW Paste Data