Filter hook 'get_lastpostdate'

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

Description

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

Occurrences

Filename Line Number
wp-includes/post.php 7244

Parameters

Type Name Description
string|false $lastpostdate The most recent time that a post was published, in 'Y-m-d H:i:s' format. False on failure.
string $timezone Location to use for getting the post published 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 published.
	 *
	 * @since 2.3.0
	 * @since 5.5.0 Added the `$post_type` parameter.
	 *
	 * @param string|false $lastpostdate The most recent time that a post was published,
	 *                                   in 'Y-m-d H:i:s' format. False on failure.
	 * @param string       $timezone     Location to use for getting the post published date.
	 *                                   See get_lastpostdate() for accepted `$timezone` values.
	 * @param string       $post_type    The post type to check.
	 */