Skip to content

Instantly share code, notes, and snippets.

@WordBits WordBits/snippet.php
Created Sep 24, 2018

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
You can’t perform that action at this time.