Skip to content

Instantly share code, notes, and snippets.

@TheCraigHewitt
Created July 27, 2019 17:27
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 TheCraigHewitt/e918e39c4432334fc59d4d99dd0f8cb4 to your computer and use it in GitHub Desktop.
Save TheCraigHewitt/e918e39c4432334fc59d4d99dd0f8cb4 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;
}
@OneHatRepo
Copy link

Is this supposed to go in /wp-content/plugins/seriously-simple-podcasting/php/includes/ssp-functions.php?
I initially put it in /wp-includes/functions.php and it crashed the site.

@TheCraigHewitt
Copy link
Author

Yes this goes in the theme's functions.php file. so it would be /wp-content/themes/your-theme-name/functions.php

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