benecaster_token_url
Filters the full RSS feed URL shown to subscribers. Use to implement custom URL structures or add tracking parameters.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$url |
string |
— | Full RSS feed URL for the subscriber |
$token |
string |
— | The subscriber's token |
$show_id |
int |
— | ID of the show |
$user_id |
int |
— | WordPress user ID |
Returns:
string
Example
add_filter( 'benecaster_token_url', function( $url, $token, $show_id, $user_id ) {
// Route token URLs through a short-link vanity domain.
return str_replace( site_url(), 'https://feeds.mypodcast.com', $url );
}, 10, 4 );