Instantly share code, notes, and snippets.

What would you like to do?
Auto login after register user in wordpress and redirect to a home page.
// Download this snippet as a plugin and more at:
// Created by: Ravi Patel
function auto_login_new_user( $user_id ) {
wp_redirect( home_url() );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment