get_the_modified_time filter-hookWP 2.0.0

Filters the localized time a post was last modified.

Usage

add_filter( 'get_the_modified_time', 'wp_kama_get_the_modified_time_filter', 10, 3 );

/**
 * Function for `get_the_modified_time` filter-hook.
 * 
 * @param string|int|false $the_time The formatted time or false if no post is found.
 * @param string           $format   Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format.
 * @param WP_Post|null     $post     WP_Post object or null if no post is found.
 *
 * @return string|int|false
 */
function wp_kama_get_the_modified_time_filter( $the_time, $format, $post ){

	// filter...
	return $the_time;
}
$the_time(string|int|false)
The formatted time or false if no post is found.
$format(string)
Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format.
$post(WP_Post|null)
WP_Post object or null if no post is found.

Changelog

Since 2.0.0 Introduced.
Since 4.6.0 Added the $post parameter.

Where the hook is called

get_the_modified_time()
get_the_modified_time
wp-includes/general-template.php 2896
return apply_filters( 'get_the_modified_time', $the_time, $format, $post );

Where the hook is used in WordPress

Usage not found.