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™ Features Installation
'; if (count(self::$updateRequestList) > 0) { if (count(self::$updateRequestList) > 1) { $str .= ' ';
$str .= '';
$str .= '