Filter hook 'get_post_modified_time'

in WP Core File wp-includes/general-template.php at line 2976

Description

Filters the localized time a post was last modified.

Occurrences

Filename Line Number
wp-includes/general-template.php 2976

Parameters

Type Name Description
string|int $time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
string $format Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format. Default 'U'.
bool $gmt Whether to retrieve the GMT time. Default false.

PHP Doc

/**
	 * Filters the localized time a post was last modified.
	 *
	 * @since 2.8.0
	 *
	 * @param string|int $time   Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
	 * @param string     $format Format to use for retrieving the time the post was modified.
	 *                           Accepts 'G', 'U', or PHP date format. Default 'U'.
	 * @param bool       $gmt    Whether to retrieve the GMT time. Default false.
	 */