Statistics: Posted by Cristián Lávaque — July 27th, 2011, 11:40 pm
Statistics: Posted by Cristián Lávaque — July 27th, 2011, 11:08 pm
Statistics: Posted by Cristián Lávaque — July 27th, 2011, 11:02 pm
Statistics: Posted by candy — July 27th, 2011, 9:25 pm
Statistics: Posted by Cristián Lávaque — July 20th, 2011, 10:09 pm
Statistics: Posted by candy — July 20th, 2011, 9:52 pm
Statistics: Posted by Cristián Lávaque — July 19th, 2011, 10:02 pm
function auto_login($userID) {
if (!is_user_logged_in()) {
$user = get_userdata($userID);
$user_id = $user->ID;
$user_login = $user->user_login;
//login
wp_set_current_user($user_id, $user_login);
wp_set_auth_cookie( $user_id, $remember, $secure );
do_action('wp_login', $user_login);
}
}
add_action('user_register', 'auto_login');
Statistics: Posted by candy — July 18th, 2011, 11:34 am
add_action('ws_plugin__s2member_during_configure_user_registration_front_side', 's2_auto_login_after_registration');
function s2_auto_login_after_registration($vars = array()) {
wp_set_auth_cookie($vars['user_id'], false, is_ssl());
$referer = remove_query_arg( array( 'action', 'instance' ), wp_get_referer() );
wp_redirect( $referer );
exit;
}
Statistics: Posted by candy — July 17th, 2011, 6:12 pm
<?php
add_action('ws_plugin__s2member_during_configure_user_registration_front_side', 's2_auto_login_after_registration');
function s2_auto_login_after_registration($vars = array()) {
wp_set_auth_cookie($vars['user_id'], false, is_ssl());
wp_redirect(S2MEMBER_LOGIN_WELCOME_PAGE_URL);
exit;
}
?>
Statistics: Posted by Cristián Lávaque — July 16th, 2011, 11:25 pm
Statistics: Posted by candy — July 16th, 2011, 5:53 pm
Statistics: Posted by Cristián Lávaque — July 16th, 2011, 5:17 pm
Statistics: Posted by candy — July 16th, 2011, 5:01 pm
Statistics: Posted by candy — July 16th, 2011, 8:01 am
Statistics: Posted by rossagrant — July 15th, 2011, 6:52 pm
Statistics: Posted by candy — July 15th, 2011, 5:49 pm