the_excerpt_rss
Filter HookDescription
Filters the post excerpt for a feed.Hook Information
File Location |
wp-includes/feed.php
View on GitHub
|
Hook Type | Filter |
Line Number | 236 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$output
|
The current post excerpt. |
Usage Examples
Basic Usage
<?php
// Hook into the_excerpt_rss
add_filter('the_excerpt_rss', 'my_custom_filter', 10, 1);
function my_custom_filter($output) {
// Your custom filtering logic here
return $output;
}
Source Code Context
wp-includes/feed.php:236
- How this hook is used in WordPress core
<?php
231 *
232 * @since 1.2.0
233 *
234 * @param string $output The current post excerpt.
235 */
236 echo apply_filters( 'the_excerpt_rss', $output );
237 }
238
239 /**
240 * Displays the permalink to the post for use in feeds.
241 *
PHP Documentation
<?php
/**
* Filters the post excerpt for a feed.
*
* @since 1.2.0
*
* @param string $output The current post excerpt.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/feed.php
Related Hooks
Related hooks will be displayed here in future updates.