Skip to content

Instantly share code, notes, and snippets.

@hlashbrooke
Created October 27, 2015 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hlashbrooke/51b5621b90010ccb8e15 to your computer and use it in GitHub Desktop.
Save hlashbrooke/51b5621b90010ccb8e15 to your computer and use it in GitHub Desktop.
Seriously Simple Podcasting: Use raw audio file URL instead of custom rewrite
add_filter( 'ssp_episode_download_link', 'ssp_use_raw_audio_file_url', 10, 3 );
function ssp_use_raw_audio_file_url ( $url, $episode_id, $file ) {
return $file;
}
@johnnyr209
Copy link

Can you somehow adjust this code to fix the URLs in the RSS Feed? The feed also has the "Download Episode" and "Play in Window" links but they don't get updated with this code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment