the_excerpt_rss
Filters the post excerpt for a feed.
Usage
add_filter( 'the_excerpt_rss', 'wp_kama_the_excerpt_rss_filter' );
/**
* Function for `the_excerpt_rss` filter-hook.
*
* @param string $output The current post excerpt.
*
* @return string
*/
function wp_kama_the_excerpt_rss_filter( $output ){
// filter...
return $output;
}
- $output(string)
- The current post excerpt.
Changelog
| Since 1.2.0 | Introduced. |
Where the hook is called
the_excerpt_rss
wp-includes/feed.php 236
echo apply_filters( 'the_excerpt_rss', $output );
Where the hook is used in WordPress
wp-includes/default-filters.php 263
add_filter( 'the_excerpt_rss', 'convert_chars' );
wp-includes/default-filters.php 264
add_filter( 'the_excerpt_rss', 'ent2ncr', 8 );