get session token in wp_login hook

114

// You can get it in wp_login. Use this instead
add_action('set_logged_in_cookie', 'custom_get_logged_in_cookie', 10, 6);
function custom_get_logged_in_cookie($logged_in_cookie, $expire, $expiration, $user_id, $logged_in_text, $token) {
    // do something...
}

Comments

Submit
0 Comments