Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author adispiac

    (@adispiac)

    We have a filter in place for that: wppb_edit_profile_success_message

    You could so something like this:

    function wppb_replace_edit_profile_success_message($message){
           $message = __('Your desired success message.','profilebuilder');
           return $message;
    }
    add_filter('wppb_edit_profile_success_message', 'wppb_replace_edit_profile_success_message')

    The code above should go in your theme’s functions.php file or in an empty plugin like this one.

    Thread Starter blueblast

    (@blueblast)

    hey!
    your filter breaks my site

    it shows an error:
    syntax error, unexpected ‘add_filter’ (T_STRING)

    what gives?

    Plugin Author adispiac

    (@adispiac)

    Sorry about that, when I pasted the code I left out a ; at the end.

    Here’s the correct one:

    function wppb_replace_edit_profile_success_message($message){
        $message = __('Your desired success message.','profilebuilder');
        return $message;
    }
    add_filter('wppb_edit_profile_success_message', 'wppb_replace_edit_profile_success_message');

    Thread Starter blueblast

    (@blueblast)

    thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to change success message?’ is closed to new replies.