WordPress at Your Fingertips
filter is not described

post_password_expires filter-hook . WP 3.7.0

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.


add_filter( 'post_password_expires', 'filter_function_name_5434' );
function filter_function_name_5434( $expires ){
	// filter...

	return $expires;
The expiry time, as passed to setcookie().


Since 3.7.0 Introduced.

Where the hook is called

In file: /wp-login.php
wp-login.php 663
$expire  = apply_filters( 'post_password_expires', time() + 10 * DAY_IN_SECONDS );

Where in WP core the hook is used WordPress

Usage not found.