On this page
apply_filters( 'auth_cookie_expiration', int $length, int $user_id, bool $remember )
Filters the duration of the authentication cookie expiration period.
Parameters
$lengthint-
Duration of the expiration period in seconds.
$user_idint-
User ID.
$rememberbool-
Whether to remember the user login. Default false.
Source
File: wp-includes/pluggable.php. View all references
$expiration = time() + apply_filters( 'auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember );
Related
Used By
| Used By | Description |
|---|---|
| wp_set_auth_cookie() wp-includes/pluggable.php | Sets the authentication cookies based on user ID. |
| wp_update_user() wp-includes/user.php | Updates a user in the database. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/auth_cookie_expiration