WordPress返回最后一条评论修改时间函数:get_lastcommentmodified

WordPress函数get_lastcommentmodified用于返回最后一条评论的修改时间。

get_lastcommentmodified( string $timezone = 'server' ): string|false

函数参数

$timezone

字符串,默认值:server

可用值:gmt、blog、server

函数返回值

成功时返回时间字符串,失败时返回false。传递不同的$timezone值返回结果也不同:

  • server:2024-10-30 01:47:21.000000
  • gmt:2024-10-30 01:47:21
  • blog:2024-10-30 09:47:21

扩展阅读

get_lastcommentmodified()函数位于:wp-includes/comment.php

相关函数:

原创文章,作者:,如若转载,请注明出处:https://ce.771633.xyz/2122.html

Like (0)
Previous 2025年3月8日
Next 2025年3月8日

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注