Answers for "get session token in wp_login hook"

PHP
0

get session token in wp_login hook

// 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...
}
Posted by: Guest on October-19-2020

Browse Popular Code Answers by Language