wp_post_revision_title_expanded
云策文档标注
概述
wp_post_revision_title_expanded 是一个 WordPress 过滤器钩子,用于修改修订版本的格式化作者和日期字符串。它允许开发者自定义修订标题的显示内容。
关键要点
- 过滤器名称:wp_post_revision_title_expanded
- 主要用途:过滤修订版本的格式化作者和日期字符串
- 参数:$revision_date_author(格式化字符串)、$revision(WP_Post 对象)、$link(布尔值,是否链接到修订页面)
- 引入版本:WordPress 4.4.0
- 相关函数:wp_post_revision_title_expanded() 用于检索修订的格式化日期时间戳
原文内容
Filters the formatted author and date for a revision.
Parameters
$revision_date_authorstring-
The formatted string.
$revisionWP_Post-
The revision object.
$linkbool-
Whether to link to the revisions page, as passed into wp_post_revision_title_expanded() .
More Arguments from wp_post_revision_title_expanded( … $link )
Whether to link to revision’s page.
Source
return apply_filters( 'wp_post_revision_title_expanded', $revision_date_author, $revision, $link );
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |