WordPress文章修改时间标签:the_modified_time

作者: 站长 上传时间: 浏览: N/A 下载: N/A 格式: N/A 评分: N/A

WordPress模板标签the_modified_time输出文章修改时间,需要用在The Loop主循环里。

the_modified_time( string $d = '')

函数参数

$d

字符串值,默认值:WordPress后台选项中设置的日期格式

定义日期的格式

函数使用示例

<p>最后修改: <?php the_modified_time(); ?></p>

扩展阅读

the_modified_time()函数位于:wp-includes/general-template.php

相关函数:

  • get_the_date()
  • get_the_time()
  • the_date()
  • get_the_modified_date()
  • the_modified_date()
  • get_the_modified_time()
  • the_time()