| @@ -12,8 +12,9 @@ | ||
| 12 | 12 | public $is_rest = false; |
| 13 | 13 | public $is_cli = false; |
| 14 | 14 | public $site_url = null; |
| 15 | 15 | public $mwcode = null; |
| 16 | + public $licenser = null; | |
| 16 | 17 | |
| 17 | 18 | private $option_name = 'mwcode_options'; |
| 18 | 19 | |
| 19 | 20 | public function __construct() { |
| @@ -37,8 +38,13 @@ | ||
| 37 | 38 | add_action( 'plugins_loaded', array( $this, 'init' ) ); |
| 38 | 39 | } |
| 39 | 40 | |
| 40 | 41 | function init() { |
| 42 | + // Initialize the licenser for Pro version | |
| 43 | + if ( class_exists( 'MeowCommonPro_Licenser' ) ) { | |
| 44 | + $this->licenser = new MeowCommonPro_Licenser( MWCODE_PREFIX, MWCODE_ENTRY, MWCODE_DOMAIN, MWCODE_ITEM_ID, MWCODE_VERSION ); | |
| 45 | + } | |
| 46 | + | |
| 41 | 47 | // Part of the core, settings and stuff |
| 42 | 48 | $this->admin = new Meow_MWCODE_Admin( $this ); |
| 43 | 49 | |
| 44 | 50 | // Only for REST |