the_modified_time

Advertisement

Summery Summery

Display the time at which the post was last modified.

Syntax Syntax

the_modified_time( string $format = '' )

Parameters Parameters

$format

(Optional) Either 'G', 'U', or PHP date format defaults to the value specified in the time_format option.

Default value: ''

Source Source

File: wp-includes/general-template.php

	if ( ! $post ) {
		return false;
	}

	$source   = ( $gmt ) ? 'gmt' : 'local';
	$datetime = get_post_datetime( $post, 'date', $source );

	if ( false === $datetime ) {
		return false;
	}

	if ( 'U' === $format || 'G' === $format ) {

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Advertisement

Leave a Reply