WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about set_logged_in_cookie

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/pluggable.php do_action 1065 /**
* 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.
*/

Hook Parameters

Parameter 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.
int $expiration The time when the logged-in authentication cookie expires as a UNIX timestamp.
int $user_id User ID.
string $scheme Authentication scheme. Default 'logged_in'.
string $token User's session token to use for this cookie.