Do you think redirecting through my site to the Envato download URL would work, and is just more complex – or do you think it’d actually cause issues?
That would work fine, I bounce from an authenticated url on my server to a 3rd party file host. So WordPress does handle redirections in the update just fine.
Setup this update script on a new domain/subdomain that can easily be moved/scaled in the future. You will see a lot of broken WordPress installs that hit your server every few seconds for updates. It’s incredible! I had to do some tricky caching based in referrer/post data to take the load off my php script.
have you possible tried to see if this shows anything https://wordpress.org/plugins/background-update-tester/
Yeah it still skips including your plugin code during the update check, so you can’t hook into it to change the request (it just checks WordPress.org for any updates to your network-disabled plugin, like normal plugins)
Need to have a separate “update” network enabled plugin or somehow overwrite the network update transient value from the sub-network site (I got close, just couldn’t figure out expiries correctly).
So do you think if I made that download URL point to my own site, which then queried the Envato API, retrieved the download link, and redirected to it, that that would work?
hey for auto updates that bounce through your server I would avoid the download url and just self host the files. verify their purchase with the purchase code. this is easier because the end user doesn’t have to go and find their API key, just a purchase code
(and the purchase code is about to become much more visible from the downloads page)
I’ll dig up some code that I use and share it.
Hey you’re smart, if you’re playing aroung with auto updates can you try and get network plugins updating? When a plugin is “network enabled” these custom updates work fine. However if the plugin is only enabled on one of the sub-network sites, the main site never includes your plugin code, so the custom update hook can never run! I have tried to manually update the transient values from within the sub-network plugin, but they get overwritten. If you can figure it out you are amazing! (but I think the best option will be to display a message saying “plugin update available, please network-enable this plugin” or something)
Yea Amble was taken, so the app got a couple of name changes recently and ended up with that one.
Nah couldn’t find enough people with right skills to join my “founder” recycling app idea, so I ended up joining the other team as the developer (which worked nicely because we won).
So much happens after a startup weekend, it’s really quite interesting. A lot of ups and downs and legal mumbo jumbo. I still reckon everyone should try to attend one.
Don’t worry about it, I get heaps of people asking for updates after Envato have shut them down. Everything from “i forgot my password” to “envato is blocked at my workplace”. If someone cannot access their account, 99% chance they have done something bad (shared code, refund, etc..). Just be nice and ask them to contact Envato support as the issue is out of your hands.