It’s no secret I’m a fan of Easy Digital Downloads as I’m a contributor and support technician for the project. I’m also a HUGE fan of the Software Licensing Extension that Pippin built for it. While it’s a verify flexible extension, the vast majority of people use it to sell WordPress Plugins and Themes, as it enables users to update the items from within their WordPress admin. I needed to take it a bit further though.
I’ve been working on a project to help ease the promoting of WordPress content on Twitter. During the development of this project I found it necessary for the plugin to periodically “call home” (once a week in this case) to postpromoterpro.com to get updated social media tokens and data necessary for proper functionality.
The key here though, was I didn’t want just anybody to be able to access my API. I wanted any customer with a valid or expired license key to be able to retrieve this data. In your case, you may just want valid, but in my case I found it beneficial to the users to allow this to work after expiration, they just won’t get updates to the plugin itself. So here’s what I did.
Read Full Article