wp-includes/general-template.php:2966Displays the date on which the post was last modified.
$formatstringoptional''$beforestringoptional''$afterstringoptional''$displaybooloptionaltruestring|nullOne hook fires while the_modified_date() runs, in this order:
Filters the date a post was last modified, for display.
function the_modified_date( $format = '', $before = '', $after = '', $display = true ) { $the_modified_date = $before . get_the_modified_date( $format ) . $after; /** * Filters the date a post was last modified, for display. * * @since 2.1.0 * * @param string $the_modified_date The last modified date. * @param string $format PHP date format. * @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, $format, $before, $after ); if ( $display ) { echo $the_modified_date; } else { return $the_modified_date; }}Introduced in 2.1.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
string|void to string|null.verified against sourcesrc/wp-includes/general-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.