1

I think wordpress used to automatically redirect to a page with a message telling a newly registered user to check their email box to activate their account.

For some reason, when a new person registers now, they are automatically redirected to the home page with no alert or message. I've been trying to get wordpress to display an alert to the user after clicking "Sign Up" with:

add_action('user_register','check_your_email');

function check_your_email(){
    echo "<script>
    alert('There are no fields to generate a report');
    </script>";
}

But the function above seems to have no effect at all. How can I display an alert to the user on successful sign up (but before activation?). I've also tried the hook register_new_user but it also has no effect.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.