Filter hook 'pre_get_lastpostmodified'

in WP Core File wp-includes/post.php at line 7276

Description

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

Occurrences

Filename Line Number
wp-includes/post.php 7276

Parameters

Type Name Description
string|false $lastpostmodified 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.
string $timezone Location to use for getting the post modified date. See get_lastpostdate() for accepted `$timezone` values.
string $post_type The post type to check.

PHP Doc

/**
	 * Pre-filter the return value of get_lastpostmodified() before the query is run.
	 *
	 * @since 4.4.0
	 *
	 * @param string|false $lastpostmodified 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.
	 * @param string       $timezone         Location to use for getting the post modified date.
	 *                                       See get_lastpostdate() for accepted `$timezone` values.
	 * @param string       $post_type        The post type to check.
	 */