Filter hook 'get_post_time'

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

Description

Filters the localized time a post was written.

Occurrences

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

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 written. Accepts 'G', 'U', or PHP date format.
bool $gmt Whether to retrieve the GMT time.

PHP Doc

/**
	 * Filters the localized time a post was written.
	 *
	 * @since 2.6.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 written.
	 *                           Accepts 'G', 'U', or PHP date format.
	 * @param bool       $gmt    Whether to retrieve the GMT time.
	 */