get_lastpostdate

最后更新于:2021-11-26 22:39:01

apply_filters( ‘get_lastpostdate’, string|false $lastpostdate, string $timezone, string $post_type )

Filters the most recent time that a post on the site was published.

参数

$lastpostdate

(string|false)
The most recent time that a post was published, in ‘Y-m-d H:i:s’ format. False on failure.

$timezone

(string)
Location to use for getting the post published date. See get_lastpostdate() for accepted $timezone values.

$post_type

(string)
The post type to check.

源文件

文件: gc-includes/post.php

View on Trac