Exemplo n.º 1
0
 /**
  * Loads the plugin license manager
  *
  * @return DVK_Plugin_License_Manager An instance of the Plugin_License_Manager class
  */
 private function load_license_manager()
 {
     $product = new MC4WP_Product();
     $license_manager = new DVK_Plugin_License_Manager($product);
     $license_manager->setup_hooks();
     return $license_manager;
 }
Exemplo n.º 2
0
<?php

defined('ABSPATH') or exit;
// do nothing for frontend facing requests
if (!is_admin()) {
    return;
}
$dir = dirname(__FILE__);
require_once $dir . '/includes/class-product-base.php';
require_once $dir . '/includes/class-product.php';
require_once $dir . '/includes/class-license-manager.php';
require_once $dir . '/includes/class-plugin-license-manager.php';
global $mc4wp_license_manager;
$product = new MC4WP_Product();
$license_manager = new DVK_Plugin_License_Manager($product);
$license_manager->setup_hooks();
$mc4wp_license_manager = $license_manager;
/**
 * @ignore
 * @access private
 */
function __mc4wp_premium_show_license_form()
{
    global $mc4wp_license_manager;
    echo '<div class="mc4wp-license-form">';
    $mc4wp_license_manager->show_license_form(false);
    echo '</div>';
}
add_action('mc4wp_admin_after_general_settings', '__mc4wp_premium_show_license_form');