New answers tagged

0

Short answer - Your original function (mostly) works. This is your function edited to do what it needs to do: function log_me_the_f_in( $user_id ) { wp_set_current_user( $user_id ); wp_set_auth_cookie( $user_id ); wp_redirect( home_url( '/some-ending-page/' ) ); exit(); } add_action( 'user_register', 'log_me_the_f_in' ); Long answer - ...



Top 50 recent answers are included