the_content_rss
云策文档标注
概述
the_content_rss 是一个用于在 RSS 订阅中过滤文章内容的过滤器钩子。该钩子已被弃用,建议使用 the_content_feed 作为替代。
关键要点
- the_content_rss 是一个过滤器钩子,用于在 RSS 订阅上下文中过滤文章内容。
- 该钩子已被弃用,自 WordPress 2.9 版本起,应使用 the_content_feed 钩子替代。
- 参数 $content 表示当前文章的内容字符串。
注意事项
由于 the_content_rss 已被弃用,开发者应避免在新代码中使用,并迁移到 the_content_feed 钩子以确保兼容性。
原文内容
Filters the post content in the context of an RSS feed.
Parameters
$contentstring-
Content of the current post.
Source
$content = apply_filters('the_content_rss', $content);
Changelog
| Version | Description |
|---|---|
| 0.71 | Introduced. |