feed_links_extra_show_author_feed
云策文档标注
概述
feed_links_extra_show_author_feed 是一个 WordPress 过滤器,用于控制是否显示作者 feed 链接。它允许开发者通过钩子修改默认行为。
关键要点
- 这是一个过滤器钩子,用于控制作者 feed 链接的显示状态。
- 参数 $show 是一个布尔值,默认为 true,表示显示作者 feed 链接。
- 在 feed_links_extra() 函数中调用,用于生成额外 feed 链接。
- 从 WordPress 6.1.0 版本开始引入。
代码示例
$show_author_feed = apply_filters( 'feed_links_extra_show_author_feed', true );
原文内容
Filters whether to display the author feed link.
Parameters
$showbool-
Whether to display the author feed link. Default true.
Source
$show_author_feed = apply_filters( 'feed_links_extra_show_author_feed', true );
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |