Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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...
}
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #session #token #hook
ADD COMMENT
Topic
Name
4+5 =