Exemplo n.º 1
0
}
function ywctm_install_premium_woocommerce_admin_notice()
{
    ?>
    <div class="error">
        <p><?php 
    _e('YITH WooCommerce Catalog Mode is enabled but not effective. It requires Woocommerce in order to work.', 'ywctm');
    ?>
</p>
    </div>
    <?php 
}
if (!function_exists('yit_deactive_free_version')) {
    require_once 'plugin-fw/yit-deactive-plugin.php';
}
yit_deactive_free_version('YWCTM_FREE_INIT', plugin_basename(__FILE__));
if (!defined('YWCTM_VERSION')) {
    define('YWCTM_VERSION', '1.0.6');
}
if (!defined('YWCTM_INIT')) {
    define('YWCTM_INIT', plugin_basename(__FILE__));
}
if (!defined('YWCTM_SLUG')) {
    define('YWCTM_SLUG', 'yith-woocommerce-catalog-mode');
}
if (!defined('YWCTM_SECRET_KEY')) {
    define('YWCTM_SECRET_KEY', '8KywmSzFxgb5m0SFKMac');
}
if (!defined('YWCTM_PREMIUM')) {
    define('YWCTM_PREMIUM', '1');
}
Exemplo n.º 2
0
 * Load actiovation utility functions
 */
require_once 'includes/functions.yith-plugin-activation.php';
if (!function_exists('WC')) {
    add_action('admin_notices', 'install_premium_woocommerce_admin_notice');
    return;
}
!defined('YITH_WPV_PREMIUM') && define('YITH_WPV_PREMIUM', '1');
!defined('YITH_WPV_INIT') && define('YITH_WPV_INIT', plugin_basename(__FILE__));
/**
 * Check if a free version currently active and try disabling before activating this one
 */
if (!function_exists('yit_deactive_free_version')) {
    require_once 'plugin-fw/yit-deactive-plugin.php';
}
yit_deactive_free_version('YITH_WPV_FREE_INIT', YITH_WPV_INIT);
/**
 * Check if a jetpack module is currently active and try disabling before activating this one
 */
global $yith_jetpack_1;
yith_deactive_jetpack_module($yith_jetpack_1, 'YITH_WPV_PREMIUM', YITH_WPV_INIT);
//  Stop activation if the premium version of the same plugin is still active
if (defined('YITH_WPV_VERSION')) {
    return;
}
/* Load YWCM text domain */
load_plugin_textdomain('yith_wc_product_vendors', false, dirname(plugin_basename(__FILE__)) . '/languages/');
!defined('YITH_WPV_VERSION') && define('YITH_WPV_VERSION', '1.8.4');
!defined('YITH_WPV_DB_VERSION') && define('YITH_WPV_DB_VERSION', '1.0.3');
!defined('YITH_WPV_SLUG') && define('YITH_WPV_SLUG', 'yith-woocommerce-product-vendors');
!defined('YITH_WPV_SECRET_KEY') && define('YITH_WPV_SECRET_KEY', '6NBH2Snt7DFU4J02vtgl');