How to Set Up VeriLock – Step-by-Step Guide

VeriLock is an online license manager that helps protect your plugins and themes from unauthorized use. Follow this step-by-step guide to integrate VeriLock into your product.

Step 1: Register on VeriLock

  1. Go to verilock.eazykiya.com.
  2. Click Register and create an account.
  3. Enter your email and password.
  4. Add your redeem code (received after purchasing VeriLock).
  5. Click Sign Up to complete registration.

Step 2: Access the Dashboard

  1. After logging in, you’ll see the VeriLock Dashboard.
  2. This is where you manage products and licenses.

Step 3: Create a Product

  1. Click the Products tab.
  2. Click Add New Product.
  3. Enter your product name.
  4. Click Save.
  5. Your product is now ready for license generation.

Step 4: Generate a License Code

  1. Go to the Licenses section.
  2. Select the product you want to generate a license for.
  3. Click Create License and:
  4. Click Generate License.
  5. Your unique license code is now ready.

Step 5: Generate the Verification Script

  1. Open the Generate Script tab.
  2. Select your product.
  3. Click Generate Script.
  4. Copy the generated script.

Coding Part – Integrate VeriLock Into Your Plugin or Theme

Step 6: Add the License File

  1. Go to your plugin or theme directory.
  2. Create a new PHP file (e.g., verilock-license.php).
  3. Paste the copied script inside this file.
  4. Save the file.

Step 7: Include the License File in Your Main File

  1. Open your main plugin or theme file (e.g., your-plugin.php).
  2. Add this line at the top: include_once plugin_dir_path(__FILE__) . 'verilock-license.php';
  3. This ensures the license check runs whenever your plugin or theme is used.

Step 8: Restrict Plugin Access Until License is Activated

Modify your main plugin file to prevent access until the license is activated:

public function snow_flakes_add_plugin_page()
{
    if (is_plugin_activated6093()) {
        add_menu_page(
            __('freeazio', 'nr_snow_flakes'), // Page title
            __('freeazio', 'nr_snow_flakes'), // Menu title
            'manage_options', // Capability
            'snow-flakes', // Menu slug
            array($this, 'snow_flakes_create_admin_page'), // Function
            'dashicons-tickets-alt', // Icon
            100 // Position
        );
    } else {
        // Show admin notice if the license is not activated
        add_action('admin_notices', function () {
            echo '<div class="notice notice-error"><p>
            <strong style="color: red;">
            Please activate your license to enable updates. <a href="' . admin_url('options-general.php?page=license-validator6093') . '" style="color: red;">Activate Now</a>
            </strong></p></div>';
        });
    }
}

Final Step: Done! 🎉

Your plugin or theme is now protected with VeriLock! Only users with a valid license can activate and use it.

If you have any questions, feel free to ask! 🚀