Filter hook 'get_lastpostmodified'

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

Description

Filters the most recent time that a post on the site was modified.

Occurrences

Filename Line Number
wp-includes/post.php 7301

Parameters

Type Name Description
string|false $lastpostmodified The most recent time that a post was modified, in 'Y-m-d H:i:s' format. False on failure.
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

/**
	 * Filters the most recent time that a post on the site was modified.
	 *
	 * @since 2.3.0
	 * @since 5.5.0 Added the `$post_type` parameter.
	 *
	 * @param string|false $lastpostmodified The most recent time that a post was modified,
	 *                                       in 'Y-m-d H:i:s' format. False on failure.
	 * @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.
	 */