pre_get_lastpostmodified WordPress Filter Hook

The pre_get_lastpostmodified hook is a hook that is called before the last post modified time is retrieved. This hook can be used to modify the query that is used to retrieve the last post modified time.

apply_filters( 'pre_get_lastpostmodified', string|false $lastpostmodified, string $timezone, string $post_type ) #

Pre-filter the return value of get_lastpostmodified() before the query is run.


Parameters

$lastpostmodified

(string|false)The most recent time that a post was modified, in 'Y-m-d H:i:s' format, or false. Returning anything other than false will short-circuit the function.

$timezone

(string)Location to use for getting the post modified date. See get_lastpostdate() for accepted $timezone values.

$post_type

(string)The post type to check.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.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.

Show More
Show More