the_modified_date( string $format = '', string $before = '', string $after = '', bool $display = true )

Displays the date on which the post was last modified.


Parameters

$format

(Optional) PHP date format. Defaults to the 'date_format' option.

Default value: ''

$before

(Optional) Output before the date.

Default value: ''

$after

(Optional) Output after the date.

Default value: ''

$display

(Optional) Whether to echo the date or return it.

Default value: true


Return

(string|void) String if retrieving.


Source

File: wp-includes/general-template.php

function the_modified_date( $d = '', $before = '', $after = '', $echo = true ) {
	$the_modified_date = $before . get_the_modified_date($d) . $after;

	/**
	 * Filters the date a post was last modified for display.
	 *
	 * @since WP-2.1.0
	 *
	 * @param string $the_modified_date The last modified date.
	 * @param string $d                 PHP date format. Defaults to 'date_format' option
	 *                                  if not specified.
	 * @param string $before            HTML output before the date.
	 * @param string $after             HTML output after the date.
	 */
	$the_modified_date = apply_filters( 'the_modified_date', $the_modified_date, $d, $before, $after );

	if ( $echo )
		echo $the_modified_date;
	else
		return $the_modified_date;

}


Changelog

Changelog
Version Description
2.1.0 Introduced.