Closed michael-cannon closed 6 years ago
Alternately, as I figure out from looking at ways to fork this and make it easier.
protected $update_url = 'https://easydigitaldownloads.com';
. Then in the private function auto_updater()
we call $this->update_url
instead.function __construct( $_file, $_item_name, $_version, $_author, $_optname = null )
as in function __construct( $_file, $_item_name, $_version, $_author, $_optname = null, $_update_url = 'https://easydigitaldownloads.com' )
or $_update_url = null
.At the end of day, I'm looking to make license key handling more consistent and reliable for Easy Digital Downloads premium plugins as well as reduce the amount of repeated coding.
Oh yeah, this is great!
I'd like to see the
class EDD_License
made more reusable so that we can easily adjust the methodauto_updater
update URL with our own. Then in turn, integrating EDD Software Licensing becomes really a quick affair.To make
class EDD_License
extensible, I think simply changingprivate function auto_updater
toprotected function auto_updater
will suffice. Then we can create simple extensions class with our own update URL.Therefore, in then in my plugin I do…
File
TWP_License_Handler.php
looks like…