the_content_rss
Filter HookDescription
Filters the post content in the context of an RSS feed.Hook Information
File Location |
wp-includes/deprecated.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1691 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$content
|
Content of the current post. |
Usage Examples
Basic Usage
<?php
// Hook into the_content_rss
add_filter('the_content_rss', 'my_custom_filter', 10, 1);
function my_custom_filter($content) {
// Your custom filtering logic here
return $content;
}
Source Code Context
wp-includes/deprecated.php:1691
- How this hook is used in WordPress core
<?php
1686 *
1687 * @since 0.71
1688 *
1689 * @param string $content Content of the current post.
1690 */
1691 $content = apply_filters('the_content_rss', $content);
1692 if ( $cut && !$encode_html )
1693 $encode_html = 2;
1694 if ( 1== $encode_html ) {
1695 $content = esc_html($content);
1696 $cut = 0;
PHP Documentation
<?php
/**
* Filters the post content in the context of an RSS feed.
*
* @since 0.71
*
* @param string $content Content of the current post.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/deprecated.php
Related Hooks
Related hooks will be displayed here in future updates.