wphooks.info - set_auth_cookie

set_auth_cookie

(trunk - 5.0-alpha-42719)

The hook occurs in the following file:

wp-includes/pluggable.php:
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
		 *
		 * @param string $auth_cookie Authentication cookie.
		 * @param int    $expire      The time the login grace period expires as a UNIX timestamp.
		 *                            Default is 12 hours past the cookie's expiration time.
		 * @param int    $expiration  The time when the authentication cookie expires as a UNIX timestamp.
		 *                            Default is 14 days from now.
		 * @param int    $user_id     User ID.
		 * @param string $scheme      Authentication scheme. Values include 'auth', 'secure_auth', or 'logged_in'.
		 * @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.
		 *
		 * @param string $logged_in_cookie The logged-in cookie.
		 * @param int    $expire           The time the login grace period expires as a UNIX timestamp.