WP-for-Church / Sermon-Manager

Sermon Manager for WordPress is the #1 plugin for churches who want to manage their sermons easily and missionally.
https://wordpress.org/plugins/sermon-manager-for-wordpress/
GNU General Public License v2.0
44 stars 34 forks source link

Hooks to adjust media URL in wpfc_render_audio and RSS feed view. #293

Open regiside opened 3 years ago

regiside commented 3 years ago

Hey, First off thanks for this great plugin! I'm trying to modify the url to the media files via a plugin to add a tracking prefix (similar to podtrac but a different service.) Rather than hard code it into my copy of the Sermon Manager plugin I figured I'd develop a plugin that hooked into Sermon Manager to allow adding any custom prefix for use with the various tracking providers. Unfortunately the hooks needed to do it are not very precise and require some clunky code that might not be future proof. At the moment there is: sm_audio_player hook in '/includes/sm-template-functions.php' and wpfc-podcast-feed-custom-enclosure in 'views/wpfc-podcast-feed.php' I was able to adjust the URL in the first one using preg_replace. A bit messy, but it works. But the second one wpfc-podcast-feed-custom-enclosure is coded in such a way where if you want to use the hook you have to completely re-code the enclosure section cause it doesn't send the original output in the filter. Instead of trying to re-code the enclosure section in my plugin I may just submit a pull request with a more refined hook for filtering the media URL.

Just wanted to see if anyone is still managing the project and what your thoughts were. Thanks!