X

Display Custom Message on the User Registration Page

Snippets by IsItWP

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

Are you looking for a way to add a delete button for your posts to the admin bar? While there’s probably a plugin for this, we have created a quick code snippet that you can use to add a delete button and delete posts from admin bar in WordPress.

Instructions:

All you have to do is add this code to your theme’s functions.php file or in a site-specific plugin:

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

Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly add code snippets in WordPress, so you don’t accidentally break your site.

If you liked this code snippet, please consider checking out our other articles on the site like: 62 free WordPress blog themes and how to use WordPress themes customizer to modify themes.

Comments   Leave a Reply

  1. iwant a custom popup message to show after they have registered can i have that ? how?

  2. have any plugin do this task without coding?

  3. How to display a custom message on WordPress registration page August 30, 2012 at 9:23 am

    […] to Kevin Chard for the code! If you enjoyed this article, please consider sharing it! tweetmeme_style = […]

  4. Do you know how to make a custom email welcome with password for new user who register in the web site? Thanks!

    1.  Hi Profesor a number of plugins exist that will do this better then just a few snippets. One of these should do the job.

      http://epicalex.com/new-user-email-set-up/
      http://wordpress.org/extend/plugins/welcome-email-editor/

  5. It works for me. Thank you!

    1. No problem glad that I could help.

      1. Thanks a lot, very useful!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!