feed_content_type

过滤钩子
apply_filters( 'feed_content_type', $content_type, $type )
参数
  • (string) $content_type Content type indicating the type of data that a feed contains.
    Required:
  • (string) $type Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.
    Required:
定义位置
相关勾子
embed_content_metaget_comment_typeembed_contentwp_mail_content_typethe_content_feed
相关方法
feed_content_typeget_comment_typecomment_typethe_content_feedget_the_content_feedthe_content
引入
2.8.0
弃用
-

feed_content_type – 这个函数为WordPress的feed设置内容类型。内容类型是用来决定馈送在网络浏览器或RSS阅读器中的显示方式。默认情况下,内容类型被设置为”application/rss+xml”。

过滤特定feed类型的内容类型。

return apply_filters( 'feed_content_type', $content_type, $type );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-03-15 13:37:19

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: