golden hour
/home/godaofbq/hardchambers.com/wp-content/plugins/discountify-pro
⬆️ Go Up
Upload
File/Folder
Size
Actions
assets
-
Del
OK
autoloader.php
1.22 KB
Del
OK
base
-
Del
OK
core
-
Del
OK
discountify-pro.php
5.96 KB
Del
OK
index.php
27 B
Del
OK
lib
-
Del
OK
readme.txt
7.56 KB
Del
OK
utils
-
Del
OK
wrapper.php
2.37 KB
Del
OK
Edit: wrapper.php
<?php namespace DiscountifyPro; use Discountify\Utils\Helper; Class Wrapper{ private static $instance; /** * __construct function * * @since 1.0.0 */ public function __construct() { // Load autoload method. Autoloader::run(); } public function init() { // active free if not $this->prepare_discountify(); if ( (!is_multisite()) || (is_multisite() && is_main_network() && is_main_site() && defined( 'MULTISITE' )) ) { $this->initialize_license_module(); } // Core files \DiscountifyPro\Core\Core::instance()->init(); // Enqueue Assets \DiscountifyPro\Base\Enqueue::instance()->init(); // load license \DiscountifyPro\Lib\License\License::instance()->init(); } public function initialize_license_module() { //fire up edd update module \DiscountifyPro\Lib\Updater\Init::instance()->init(); //handle license notice //$this->manage_license_notice(); } /** * License active message */ public function manage_license_notice() { // Register license module $license = \DiscountifyPro\Lib\License\Marketplace\License::instance(); $license->init(); if ( $license->status() != 'valid' ) { Helper::push( [ 'id' => 'discountify-pro-not-active', 'type' => 'error', 'dismissible' => true, 'btn' => '', 'message' => sprintf( esc_html__( 'Please Active License for Discountify Pro to get all the pro features and update', 'discountify-pro' ) ), ] ); } return; } /** * Prepare discountify free version if not activated * * @return void */ private function prepare_discountify() { // if discountify is not installed if ( ! did_action( 'discountify/before_load' ) ) { if ( \DiscountifyPro\Base\PluginActivator::instance()->make_dependency_ready() ) { // redirect to plugin dashboard wp_safe_redirect( "admin.php?page=discountify" ); } } } /** * Singleton Instance * * @return Bootstrap */ public static function instance() { if ( ! self::$instance ) { self::$instance = new self(); } return self::$instance; } public function product_id() { return '2735'; } public function store_url() { return 'https://woooplugin.com'; } public function marketplace() { return 'woooplugin'; } public function author_name() { return 'Woooplugin'; } }
Save