WordPress at a glance
filter is not described

auth_cookie_expiration filter-hook . WP 2.8.0

Filters the duration of the authentication cookie expiration period.

Usage

add_filter( 'auth_cookie_expiration', 'filter_function_name_4985', 10, 3 );
function filter_function_name_4985( $length, $user_id, $remember ){
	// filter...

	return $length;
}
$length(int)
Duration of the expiration period in seconds.
$user_id(int)
User ID.
$remember(true/false)
Whether to remember the user login.
Default: false

Список изменений

С версии 2.8.0 Введена.

Где вызывается хук

wp_set_auth_cookie()
auth_cookie_expiration
wp_update_user()
auth_cookie_expiration
wp-includes/pluggable.php 856
$expiration = time() + apply_filters( 'auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember );
wp-includes/user.php 2153
$default_cookie_life = apply_filters( 'auth_cookie_expiration', ( 2 * DAY_IN_SECONDS ), $ID, false );
wp-includes/pluggable.php 865
$expiration = time() + apply_filters( 'auth_cookie_expiration', 2 * DAY_IN_SECONDS, $user_id, $remember );

Где используется хук в ядре WP

Использование не найдено.