get_feed_build_date
云策文档标注
概述
get_feed_build_date 是一个 WordPress 过滤器,用于修改查询中最后发布或评论的日期。它允许开发者自定义 RSS 或 Atom 源中的构建日期。
关键要点
- 过滤器名称:get_feed_build_date
- 参数:$max_modified_time(最后修改的 UTC 时间或 false)和 $format(日期格式字符串)
- 用途:在 get_feed_build_date() 函数中应用,用于获取 WP_Query 中最新修改帖子的 UTC 时间
- 引入版本:WordPress 5.2.0
原文内容
Filters the date the last post or comment in the query was modified.
Parameters
$max_modified_timestring|false-
Date the last post or comment was modified in the query, in UTC.
False on failure. $formatstring-
The date format requested in get_feed_build_date() .
More Arguments from get_feed_build_date( … $format )
Date format string to return the time in.
Source
return apply_filters( 'get_feed_build_date', $max_modified_time, $format );
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |