Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
regiside opened this issue Oct 29, 2021 · 0 comments
Open

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

regiside opened this issue Oct 29, 2021 · 0 comments

Comments

@regiside
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant