set_auth_cookie

set_auth_cookie

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('set_auth_cookie') is found 1 times:

  • /wp-includes/pluggable.php line 1054
    		 * @param int    $user_id     User ID.
    		 * @param string $scheme      Authentication scheme. Values include 'auth' or 'secure_auth'.
    		 * @param string $token       User's session token to use for this cookie.
    		 */
    		do_action( 'set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme, $token );
    
    		/**
    		 * Fires immediately before the logged-in authentication cookie is set.
    		 *
    		 * @since 2.6.0
    		 * @since 4.9.0 The `$token` parameter was added.
    

See this hook used in plugins: