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!