add_admin_ajax_actions(); $this->add_user_ajax_actions(); $this->add_referral_tracking(); $this->add_shortcodes(); // Add more features ... self::loadFeatures(); $this->checkRegistration(); } } protected function checkRegistration() { $notify = false; $license_key = get_option('aretex_license_key'); if (! empty($license_key)){ require_once(plugin_dir_path( __FILE__ ) . 'AreteX_WPI.class.php'); $valid_license = AreteX_WPI::validate_license($license_key); } if ($valid_license){ $license_info = AreteX_WPI::getBasLicense(); if (strtolower($license_info->license_status) == 'cancelpending'){ $notify = true; } } else { $notify = true; } if ($notify) { add_action( 'admin_notices', array('AreteX_plugin','needToRegister') ); } } public static function needToRegister() { if ( current_user_can( 'activate_plugins' ) ) { $url = plugins_url( 'images/icon128x128.png', __FILE__ ); $str = '
'. "

AreteX™ eCommerce Services is Almost Ready

". 'Now you just need a sandbox account to process test payments. '. 'Click here to connect to AreteX.
'. 'X
'; echo $str; } } public function aretex_editor_button($context) { $current_screen = get_current_screen(); if( $current_screen->base == 'post' ) { $url = plugins_url( 'images/buttons/bank_transaction_16.png', __FILE__ ); $context .= " AreteX™"; return $context; } return false; } public function add_inline_aretex_popup() { $content =<<