Statistics: Posted by Cristián Lávaque — November 5th, 2011, 10:33 pm
Statistics: Posted by Cristián Lávaque — November 4th, 2011, 2:00 pm
add_action ('ws_plugin__s2member_during_configure_user_registration', 's2_auto_login_after_registration');
function s2_auto_login_after_registration($vars = array()) {
if (!is_admin() && $vars['processed'] === 'yes') {
wp_set_auth_cookie($vars['user_id'], false, is_ssl());
wp_redirect('urltoredirectto');
exit();
}
}
Statistics: Posted by ryanseo — November 4th, 2011, 9:04 am
Statistics: Posted by Cristián Lávaque — November 4th, 2011, 12:30 am
function auto_login_new_user( $user_id )
{
wp_set_auth_cookie( $user_id, false, is_ssl() );
}
add_action( 'user_register', 'auto_login_new_user' );
Statistics: Posted by ryanseo — November 3rd, 2011, 9:36 pm