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

File: wp-includes/pluggable.php.

View all references

$expiration = time() + apply_filters( "auth_cookie_expiration", 14 * DAY_IN_SECONDS, $user_id, $remember );

Leave a Reply

Your email address will not be published. Required fields are marked *