benecaster_episode_description_rss
Filters the episode description as used in RSS/podcatcher contexts.
Return a string. Cast with (string). Feed-only.
Fires twice per episode — for the core <description> in FeedCompiler and for <itunes:summary> in ItunesNamespace — and the two receive different incoming values: the compiler passes either the explicit RSS description or post_content with tags stripped, while the iTunes handler passes the stored RSS description alone. A callback that ignores its argument and returns a constant will collapse that distinction.
<description> is plain text by contract: the compiler strips tags from the stamped credit it appends for exactly this reason. Returning HTML here puts markup into a field many apps render literally — use content:encoded (via benecaster_episode_content) for rich text.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$description |
string |
— | RSS/podcatcher description for the episode |
$episode_id |
int |
— | ID of the episode |
Returns:
string
Example
add_filter( 'benecaster_episode_description_rss', function( $description, $episode_id ) {
// Append a static call-to-action to the RSS description of every episode.
return $description . "\n\nLeave a review at https://example.com/review — it helps us grow!";
}, 10, 2 );