the_modified_time filter-hookWP 2.0.0

Filters the localized time a post was last modified, for display.

Usage

add_filter( 'the_modified_time', 'wp_kama_the_modified_time_filter', 10, 2 );

/**
 * Function for `the_modified_time` filter-hook.
 * 
 * @param string|false $get_the_modified_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.
 *
 * @return string|false
 */
function wp_kama_the_modified_time_filter( $get_the_modified_time, $format ){

	// filter...
	return $get_the_modified_time;
}
$get_the_modified_time(string|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.

Changelog

Since 2.0.0 Introduced.

Where the hook is called

the_modified_time()
the_modified_time
wp-includes/general-template.php 2868
echo apply_filters( 'the_modified_time', get_the_modified_time( $format ), $format );

Where the hook is used in WordPress

Usage not found.