DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

If you need to be able to display a custom message on your registration page, here is a super simple solution to do it. Just read on and enjoy!

First, update the code below with your message on line 6. Then, paste it into your functions.php file. You’re done! Just remove the code to remove the message if needed.

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!
    echo $html;

Thanks to Kevin Chard for the code!


  1. Very nice and simple!
    Thanks for the tip 🙂

  2. great concise tip 🙂

  3. I’ve been reading a number of your posts and I wanted to congratulate you on the way you offer great and easy to implement hacks, fixes and tips. A lot of the tips you’re giving are things I’ve always wondered about.

Leave a Comment

Your email address will not be published. Required fields are marked *