post_password_expires WordPress Filter Hook

The post_password_expires hook is triggered when a post password expires. It allows you to take action when a post password expires, such as sending an email notification or displaying a message.

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.


Top ↑

Parameters

$expires

(int)The expiry time, as passed to setcookie().


Top ↑

Source

File: wp-login.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.