Automatically pass the uploaded file URL to PowerPress
-
Is there any way to write a function where, instead of using the media library to upload the file, then copy and paste the URL into the PowerPress URL filed in the PowerPress panel, that the URL is just passed to that field for you?
We’re setting up on Digital Ocean Spaces using the Media Cloud plugin to pass all uploads to DO Spaces instead of the WordPress Media Library. We’re going to have our DJs logging in with a restricted member role to create their Podcasts in OnAir2 theme. When they access the Podcasts CPT, they’ll use PowerPress to enclose their MP3 file, but I’d prefer that they simply click “Upload” in the PowerPress panel and the Digital Oceans Spaces URL simply populates for them, instead of having to always copy and paste a URL. And, since WordPress always changes the folder pathname based on YEAR/MONTH, every month they’s have to prepend a new DO Space path to the file name. It’s just very messy, I think.
So, I’m trying to think of a way to solve this by creating a custom function in PowerPress to upload the media using a button in the PowerPress panel that integrates with Media Cloud and pushes the file, as well as sets the URL, so that no one has to manually copy and paste the resulting file into PowerPress to set the enclosure into the Podcast CPT page.
The page I need help with: [log in to see the link]
- The topic ‘Automatically pass the uploaded file URL to PowerPress’ is closed to new replies.