feed_links_extra_show_tax_feed
云策文档标注
概述
feed_links_extra_show_tax_feed 是一个 WordPress 过滤器,用于控制是否显示自定义分类法的 feed 链接。它允许开发者动态调整 feed 链接的显示行为。
关键要点
- 这是一个过滤器 Hook,名称为 'feed_links_extra_show_tax_feed'。
- 参数 $show 是一个布尔值,决定是否显示自定义分类法 feed 链接,默认值为 true。
- 在 feed_links_extra() 函数中使用,该函数位于 wp-includes/general-template.php 文件中。
- 从 WordPress 6.1.0 版本开始引入。
代码示例
$show_tax_feed = apply_filters( 'feed_links_extra_show_tax_feed', true );
原文内容
Filters whether to display the custom taxonomy feed link.
Parameters
$showbool-
Whether to display the custom taxonomy feed link. Default true.
Source
$show_tax_feed = apply_filters( 'feed_links_extra_show_tax_feed', true );
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |