Table of Contents
This function will modify the message shown to user after registration with email confirmation ON.
Make sure to:
wppb_register_success_message is located in Profile Builder: /front-end/class-formbuilder.php
1 2 3 4 5 6 7 8 | /* * Modify Success message for email confirmation. Tags: confirm your email address, activation link, email confirmation */ add_filter( 'wppb_register_success_message', 'wppbc_reg_success_msg_email_confirmation', 10, 2 ); function wppbc_reg_success_msg_email_confirmation( $content, $account_name ){ return "Custom message here."; } |
This function will modify the message shown to user after registration with admin approval ON.
Make sure to:
e.g in this example is a custom message with users first name
wppb_register_success_message is located in Profile Builder: /front-end/class-formbuilder.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | /* * Modify Success message for admin approval. Tags:admin approval, registration */ add_filter( 'wppb_register_success_message', 'wppbc_reg_success_msg_admin_approval', 10, 2 ); function wppbc_reg_success_msg_admin_approval( $content, $account_name ){ if (is_email( $account_name )){ $user = get_user_by('email', $account_name); } else { $user = get_user_by('login', $account_name); } if ($user){ $first_name = $user->first_name; } else { $first_name = ''; } return "Hello $first_name. Thank you for signing up with us!"; } |
This function will modify the message shown to user after email confirmation.
Make sure to:
wppb_success_email_confirmation is located in Profile Builder: /front-end/register.php
1 2 3 4 5 6 7 8 | /* * Change the success email confirmation text "Your Email was successfully confirmed". Tags: email confirmation, successful. */ add_filter('wppb_success_email_confirmation', 'wppbc_new_success_email_confirmation'); function wppbc_new_success_email_confirmation($content){ return $content . '<p><a href="http://www.yourwebsiteurl.com/log-in/">Click here to log in</a></p>'; } |
This function will modify the message shown to user when an form error occurs.
Make sure to:
wppb_general_top_error_message is located in Profile Builder: /front-end/class-formbuilder.php
1 2 3 4 5 6 7 8 | /* * Change the Top error message on forms. Tags: error, message */ add_filter('wppb_general_top_error_message', 'wppbc_top_error_message'); function wppbc_top_error_message($content){ return '<p id="wppb_general_top_error_message">'.__( 'There was some error in the submitted form', 'profilebuilder' ).'</p>'; } |
Combine the power of Profile Builder with Paid Member Subscriptions to set up user registration, memberships, and recurring revenue.
Get 25% off with the bundle