Created
July 27, 2019 17:27
-
-
Save TheCraigHewitt/e918e39c4432334fc59d4d99dd0f8cb4 to your computer and use it in GitHub Desktop.
Seriously Simple Podcasting: Use raw audio file URL instead of custom rewrite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
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
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.