WPDev.one
Filter Hook

post_password_expires

apply_filters( 'post_password_expires', time() + 10 * DAY_IN_SECONDS )

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.

Parameters 0 required

Name / Type Description
time() + 10 * DAY_IN_SECONDS
mixed

No description available.

Return Value

(mixed)
No return value description available.

Hook Information

Source File
wp-login.php
Advertisement