-
Notifications
You must be signed in to change notification settings - Fork 3
DEV: Fully Licensed
Alejandro Mostajo edited this page Mar 20, 2018
·
3 revisions
TAG: FOR DEVELOPER
A fully licensed product will restrict the entire software unless a license key is activated.
Change the following use
statement at the beginning of your Main Class:
use WPMVC\Bridge;
Replace it with these lines:
use WPMVC\Addons\LicenseKey\Traits\LicenseTrait;
use WPMVC\Addons\LicenseKey\Core\FullyLicensedBridge as Bridge;
Then add the following line inside the main class:
class Main extends Bridge
{
use LicenseTrait;
/********
YOUR CODE HERE
********/
}
Make sure your hooks are declared in your main class and using the framework guidelines. Any hook declared outside the main class will not be covered by the bridge restriction.
If not license key has been activated, the addon will prompt the administrator with a notice requesting him to take action.
(c) 2018 10 Quality.