Add licensing to your GD Addon

The aim of this post is to give 3rd party developers a way to add licensing to their GD Addons so they can be sold and updated via the GeoDirectory servers.

The process of adding licensing to a product is relatively very simple and can be done in only two steps:

#1 Add the required file to your addon:

#2 Then add this code to the near top of your main plugin file:
Replacing the following variables in the function call with your own, you can see explinations of what they are in the code comments, the most important one is the $download_id, you get this id once you add your addon to our site for sale.

It’s that simple, the same update file is used in all our addons that is why we surround it with if(!class_exists(‘GD_Plugin_Updater’)) and you should too.