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.7.2

do_action('set_auth_cookie') is found 1 times:

  • /wp-includes/pluggable.php line 1054
    1050
    1051
    1052
    1053
    1054
    1055
    1056
    1057
    1058
    1059
    1060
    * @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: