Filter hook 'post_password_expires'

in WP Core File wp-login.php at line 778

Description

Filters the life span of the post password cookie. By default, the cookie expires 10 days from creation. To turn this into a session cookie, return 0.

Occurrences

Filename Line Number
wp-login.php 778

Parameters

Type Name Description
int $expires The expiry time, as passed to setcookie().

PHP Doc

/**
		 * Filters the life span of the post password cookie.
		 *
		 * By default, the cookie expires 10 days from creation. To turn this
		 * into a session cookie, return 0.
		 *
		 * @since 3.7.0
		 *
		 * @param int $expires The expiry time, as passed to setcookie().
		 */