benecaster_platform_audio_hosts
The hosts whose audio the post-import review table flags as Platform-hosted audio — the one completeness flag that says something is about to break rather than merely be absent, because an enclosure on a platform the podcaster is leaving stops serving once that account ends. Fires in Episode\ImportReviewQuery::is_platform_hosted(), once per table render, on an admin request only.
Core’s list: patreon.com, patreonusercontent.com, anchor.fm, supercast.com, supportingcast.fm, memberful.com, glow.fm, substack.com, substackcdn.com.
Give bare, lowercase registrable domains — no scheme, port, path or leading dot. Each is matched against the enclosure URL’s host exactly or as a subdomain, so example.com covers cdn.example.com but never notexample.com, example.com.evil.test, or the string appearing in a path. Return [] to switch the flag off entirely.
Add platforms a podcaster leaves, not podcast hosts. A file on Libsyn, Buzzsprout or Captivate keeps working after a move to Benecaster; flagging those would mark the majority of healthy imports and teach podcasters to ignore the chip. The intended caller is an add-on that migrates from a specific platform and knows its CDN domain.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$hosts |
string[] |
— | Registrable domains. |
Returns:
string[]
Example
add_filter( 'benecaster_platform_audio_hosts', function ( array $hosts ): array {
$hosts[] = 'media.myplatform.example';
return $hosts;
} );
Notes
See Flag imported episodes your own way for reading the review table's flags array this filter feeds into.
Need this built rather than just documented? See our services →