Skip to content

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.

Code Setup

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
    ********/
}

Hooks

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.

License notices

If not license key has been activated, the addon will prompt the administrator with a notice requesting him to take action.

Clone this wiki locally