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
File: wp-includes/pluggable.php.
View all references
$expiration = time() + apply_filters( "auth_cookie_expiration", 14 * DAY_IN_SECONDS, $user_id, $remember );