显示上次修改帖子的时间。
原型
the_modified_time( string $d = '' )
参数
$d
(string)
(Optional)
“G”,“U”或php日期格式默认为time_format选项中指定的值。
源文件
路径:wp-includes/general-template.php
<?php
...
function the_modified_time($d = '') {
/**
* Filters the localized time a post was last modified, for display.
*
* @since 2.0.0
*
* @param string $get_the_modified_time The formatted time.
* @param string $d The time format. Accepts 'G', 'U',
* or php date format. Defaults to value
* specified in 'time_format' option.
*/
echo apply_filters( 'the_modified_time', get_the_modified_time($d), $d );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/the_modified_time/