apply_filters( 'the_modified_date', string $the_modified_date, string $format, string $before, string $after )
- Since
- 2.1.0
Filters the date a post was last modified, for display.
Compatibility
- WordPress
- since 2.1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$the_modified_datestring- The last modified date.
$formatstring- PHP date format.
$beforestring- HTML output before the date.
$afterstring- HTML output after the date.
Where this hook fires · 1
wp-includes/general-template.php:2979the_modified_date()
Source code
* * @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; }Changelog
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.
6.8.8
Parameter
$the_modified_date retyped from string|false to string.verified against source2.1.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.