auth_cookie_expiration WordPress Filter Hook

The "auth_cookie_expiration" hook is used to change the expiration time for the authentication cookie. By default, the cookie expires after 14 days.

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.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More