get_lastpostdate
apply_filters( ‘get_lastpostdate’, string|false $date , string $timezone )
过滤器::筛选网站上的文章最近一次发布的时间。
Filter Hook: Filters the most recent time that a post on the site was published.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$date | (string | false) | 最后一篇文章发表的日期。失败时为False。 |
$timezone | (string) | 用于获取发布后日期的位置。有关接受的$timezone值,请参见get_lastpostdate()。 |
源码(Source)
get_lastpostdate() 函数的代码位于 wp-includes/post.php.
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.3.0 | wp-includes/post.php:6439 | 1 | 0 |
get_lastpostdate 为WP2原创文章,链接:https://www.wp2.cn/hook/get_lastpostdate-2/