<?php

/********************************************************************************
 * This file was automatically generated by the version-loader-generator script
 * whenever the composer update command is run.
 *
 * WARNING: Do not modify this file directly. Your changes will be overwritten.
 *******************************************************************************/

namespace PublishPress\WordpressEddLicense;

use function add_action;
use function do_action;

if (! function_exists('add_action')) {
    return;
}

if (! function_exists(__NAMESPACE__ . '\register3Dot0Dot6')) {
    if (! defined('PUBLISHPRESS_WORDPRESS_EDD_LICENSE_INCLUDED')) {
        define('PUBLISHPRESS_WORDPRESS_EDD_LICENSE_INCLUDED', __DIR__);
    }

    if (! class_exists('PublishPress\WordpressEddLicense\Versions')) {
        require_once __DIR__ . '/Versions.php';

        add_action('plugins_loaded', [Versions::class, 'initializeLatestVersion'], -150, 0);
    }

    add_action('plugins_loaded', __NAMESPACE__ . '\register3Dot0Dot6', -190, 0);

    function register3Dot0Dot6()
    {
        if (! class_exists('PublishPress\WordPressEDDLicense\License')) {
            $versions = Versions::getInstance();
            $versions->register('3.0.6', __NAMESPACE__ . '\initialize3Dot0Dot6');
        }
    }

    function initialize3Dot0Dot6()
    {
        require_once __DIR__ . '/autoload.php';

        if (! defined('PUBLISHPRESS_WORDPRESS_EDD_LICENSE_VERSION')) {
            define('PUBLISHPRESS_WORDPRESS_EDD_LICENSE_VERSION', '3.0.6');
        }

        do_action('publishpress_wordpress_edd_license_3Dot0Dot6_initialized');
    }
}
