WordPress.org

Forums

Login/Register redirects (1 post)

  1. LesTexas60
    Member
    Posted 1 year ago #

    I found the code to add to functions.php that will allow me to redirect a user after he logs out of a WP site. See Below:
    add_action('wp_logout',create_function('','wp_redirect(home_url());exit

    ();'));

    Does anyone know if there is similar code to redirect the user to the Home page after they "Register". Right now they go back to the Log-In page.
    I don't want new users wading through unnecessary pages.
    Thanks for any help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.