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.
iwant a custom popup message to show after they have registered can i have that ? how?
have any plugin do this task without coding?
[…] to Kevin Chard for the code! If you enjoyed this article, please consider sharing it! tweetmeme_style = […]
Do you know how to make a custom email welcome with password for new user who register in the web site? Thanks!
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/
It works for me. Thank you!
No problem glad that I could help.
Thanks a lot, very useful!