WordPress template tags the_ modified_ Date output the last modification date of the article, which needs to be used in the main loop of the loop.
the_modified_date( string $d = '', string $before = '', string $after = '', boolean $echo = true )
Function parameters
$d
String value, default value: date format set in WordPress background options
Specifies the format of the date
$before
String value, null by default
Output before date
$after
String value, null by default
Output after date
$echo
Boolean value, default value: true
Whether to output date or only return value is output by default.
Examples of function usage
<p>Last revision date of the article: <?php the_modified_date(); ?></p>
Extended reading
the_ modified_ The date() function is located in: WP includes / general- template.php
Related tags:
- get_ the_ date()
- get_ the_ time()
- the_ date()
- get_ the_ modified_ date()
- the_ modified_ time()
- get_ the_ modified_ time()
- the_ time()