WordPress.org

Forums

How do you change the success message of the register form (1 post)

  1. Sam Scholfield
    Member
    Posted 1 year ago #

    Hi all,

    I have been customising the register form to enable you to sign up to a newsletter from there. I have completed the change, however would like to add a success message regarding the newsletter sign up.

    How can I do that?

    I can create an error using:
    $errors->add('demo_error',__('This is a demo error'));

    This is using the register_post action.

    If it helps at all, the wp-login file uses:

    elseif	( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] )
    		$errors->add('registered', __('Registration complete. Please check your e-mail.'), 'message');

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.