Display A Custom Message In WordPress User Registration Page
When someone is just about to sign up or your WordPress site, you might want to send them a welcome or a few reminders first before they click on that sign up button. One way to do that is to customize your registration screen by inserting a quick message just below the input fields and/or above the register button.
Kevin Chard came up with a way to do just that. As usual, all it takes is little hack by appending a snippet into your functions.php file.
Just copy/paste the following code below in to your functions.php file.
NOTE: You can provide your own custom message by editing the Line 6 (bolded and highlighted in red)
add_action('register_form', 'register_message'); function register_message() { $html = ' <div style="margin:10px 0;border:1px solid #e5e5e5;padding:10px"> <p style="margin:5px 0;"> Joining this site you agree to the following terms. Do no harm! </p> </div>'; echo $html; }
Save the file, and you’re done!