benecaster_feed_landing_page_enabled
Filters whether a web browser opening a private feed URL is shown the landing page instead of the raw XML.
Fires only for a token-bearing request that has already passed every feed gate (archived, over-limit, dark license, invalid or revoked token, over-cap lock, lapsed membership) and that has been identified as a browser navigation — so it never runs on a podcast-app poll. Return false to send that browser the XML instead: the kill switch if a podcast client is ever mistaken for a browser. With the page off, every request is served byte-for-byte as before the page existed.
There is deliberately no filter on the landing page’s HTML, because it contains the listener’s feed token.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$enabled |
bool |
— | Whether the landing page is shown. Default true. |
$show_id |
int |
— | ID of the show the feed URL belongs to. |
Returns:
bool
Example
add_filter( 'benecaster_feed_landing_page_enabled', function ( bool $enabled, int $show_id ): bool {
return 42 === $show_id ? false : $enabled;
}, 10, 2 );
Need this built rather than just documented? See our services →