ClassicPress logo
Skip to content
Filter by type:

Browse:

  • Home
  • Hooks
  • post_password_expires

apply_filters( 'post_password_expires', int $expires )

Filters the life span of the post password cookie.


Description

By default, the cookie expires 10 days from creation. To turn this into a session cookie, return 0.


Parameters

$expires

The expiry time, as passed to setcookie().


Source

File: wp-login.php

View on GitHub


Changelog

Changelog
Version Description
3.7.0 Introduced.
ClassicPress Documentation • Made with ClassicPress
Privacy Policy