Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: set_auth_cookie

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
889            * @param string $auth_cookie Authentication cookie value.
890            * @param int    $expire      The time the login grace period expires as a UNIX timestamp.
891            *                            Default is 12 hours past the cookie's expiration time.
892            * @param int    $expiration  The time when the authentication cookie expires as a UNIX timestamp.
893            *                            Default is 14 days from now.
894            * @param int    $user_id     User ID.
895            * @param string $scheme      Authentication scheme. Values include 'auth' or 'secure_auth'.
896            * @param string $token       User's session token to use for this cookie.
897            */
898           do_action( 'set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme, $token );
899
900           /**
901            * Fires immediately before the logged-in authentication cookie is set.
902            *
903            * @since 2.6.0
904            * @since 4.9.0 The `$token` parameter was added.
905            *
906            * @param string $logged_in_cookie The logged-in cookie value.
907            * @param int    $expire           The time the login grace period expires as a UNIX timestamp.