File "plugin.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/woo-license-keys/plugin.php
File
size: 653 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
require_once __DIR__ . '/app/Boot/bootstrap.php';
register_activation_hook(__FILE__, [&$licensekeys, '_c_void_AccountController@flush']);
if (!function_exists('register_type_license_key')) {
function register_type_license_key()
{
global $woocommerce;
if (isset($woocommerce)) {
require_once __DIR__ . '/app/Global/WC_Product_License_Key.php';
} else {
add_action('admin_notices', function () {
global $licensekeys;
$licensekeys->view('admin.notices.require-woocommerce');
});
}
}
add_action('init', 'register_type_license_key');
}