Changing the registration confirmation text
-
I was trying to modify some text related to the registration process. I was able to use add_filter() to get some text changed up on the forms, but was not sure how to modify the confirmation message after the registration submit. I’m new to WordPress so I had to fumble around with guessing the right hooks to use on the changes I made so far. I was trying to change this text up…
Congratulations! Your registration was successful.<br /><br />You may now log in using the password that was emailed to you.
I was able to find it in the $wpmem_dialogs_arr array in
/wp-content/plugins/wp-members/wp-members-install.phpline 125
$wpmem_dialogs_arr = array( "This content is restricted to site members. If you are an existing user, please log in. New users may register below.", "Sorry, that username is taken, please try another.", "Sorry, that email address already has an account.<br />Please try another.", "Congratulations! Your registration was successful.<br /><br />You may now log in using the password that was emailed to you.", "Your information was updated!", "Passwords did not match.<br /><br />Please try again.", "Password successfully changed!", "Either the username or email address do not exist in our records.", "Password successfully reset!<br /><br />An email containing a new password has been sent to the email address on file for your account.", );
Was seeing it here also
line 452
if ( $wpmem_dialogs_arr[3] == "Congratulations! Your registration was successful.<br /><br />You may now login using the password that was emailed to you." ) { $wpmem_dialogs_arr[3] = "Congratulations! Your registration was successful.<br /><br />You may now log in using the password that was emailed to you."; $do_update = true; }
Would I just need to set that array value to something different in my theme’s functions.php file like this? ..
$wpmem_dialogs_arr[3] = 'Congratulations and thank you for joining our site.';
Or which hook am I suppose to use with add_filter() to change up that text?
- The topic ‘Changing the registration confirmation text’ is closed to new replies.