Home / admin / Display custom message on the user registration page
  • How to Display custom message on the user registration page

    display-custom-message-user-registration-page

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

    ( example screenshot ) ( click code to copy )

    wordpress snippet : PHP

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

    ( WordPress codex functions, hooks, in this snippet. )

    register, add_action, wp,