钩子文档

feed_links_show_posts_feed

💡 云策文档标注

概述

feed_links_show_posts_feed 是一个 WordPress 过滤器,用于控制是否显示文章订阅链接。它允许开发者通过 apply_filters 函数修改默认行为。

关键要点

  • 这是一个过滤器,用于控制文章订阅链接的显示状态。
  • 参数 $show 是一个布尔值,默认为 true,表示显示链接。
  • 在 feed_links() 函数中调用,位于 wp-includes/general-template.php 文件中。
  • 从 WordPress 4.4.0 版本开始引入。

📄 原文内容

Filters whether to display the posts feed link.

Parameters

$showbool
Whether to display the posts feed link. Default true.

Source

if ( apply_filters( 'feed_links_show_posts_feed', true ) ) {

Changelog

Version Description
4.4.0 Introduced.