Action hook 'set_logged_in_cookie'

in WP Core File wp-includes/pluggable.php at line 1071

Description

Fires immediately before the logged-in authentication cookie is set.

Occurrences

Filename Line Number
wp-includes/pluggable.php 1071

Parameters

Type Name Description
string $logged_in_cookie The logged-in cookie value.
int $expire The time the login grace period expires as a UNIX timestamp. Default is 12 hours past the cookie's expiration time.
int $expiration The time when the logged-in authentication cookie expires as a UNIX timestamp. Default is 14 days from now.
int $user_id User ID.
string $scheme Authentication scheme. Default 'logged_in'.
string $token User's session token to use for this cookie.

PHP Doc

/**
		 * 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 value.
		 * @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 logged-in authentication cookie expires as a UNIX timestamp.
		 *                                 Default is 14 days from now.
		 * @param int    $user_id          User ID.
		 * @param string $scheme           Authentication scheme. Default 'logged_in'.
		 * @param string $token            User's session token to use for this cookie.
		 */