Display custom message on the user registration page

Adding this snippet to the functions.php of your wordpress theme will display a custom message on the user registration screen.

 

 

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;
}

Be Sociable, Share!

Leave a comment