apply_filters( 'auth_cookie_expiration', int $length, int $user_id, bool $remember )
Filters the duration of the authentication cookie expiration period.
Parameters
- $length
-
(int) Duration of the expiration period in seconds.
- $user_id
-
(int) User ID.
- $remember
-
(bool) Whether to remember the user login. Default false.
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/auth_cookie_expiration