1. 首页
  2. WordPress钩子手册

feed_content_type

apply_filters( ‘feed_content_type’, string $content_type, string $type )

筛选挂钩:筛选特定提要类型的内容类型。
Filter Hook: Filters the content type for a specific feed type.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$content_type (string) 内容类型,指示提要包含的数据类型。
$type (string) 进给类型。可能的值包括“rss”、“rss2”、“atom”和“rdf”。

源码(Source)


更新版本 源码位置 使用 被使用
2.8.0 wp-includes/feed.php:738 1 0

feed_content_type 为WP2原创文章,链接:https://www.wp2.cn/hook/feed_content_type/