/**
	 * Return an instance of this class
	 */
	 
	public static function get_instance() {
		if ( self::$instance == null ) {
			self::$instance = new self;
		}
		
		return self::$instance;
	}
Exemple #2
0
 /**
  * Load admin includes
  *
  * @return void
  */
 public function load_includes()
 {
     // Include & init admin notice class
     include_once $this->plugin_path . 'includes/admin/class_admin_notices.php';
     GW_GoPricing_AdminNotices::instance();
     // Include admin page classes
     include_once $this->plugin_path . 'includes/admin/class_admin_page.php';
     include_once $this->plugin_path . 'includes/admin/class_admin_page_main.php';
     include_once $this->plugin_path . 'includes/admin/class_admin_page_general_settings.php';
     include_once $this->plugin_path . 'includes/admin/class_admin_page_impex.php';
     include_once $this->plugin_path . 'includes/admin/class_admin_page_db_update.php';
     // Include VC extend class
     include_once $this->plugin_path . 'includes/vendors/vc/class_vc_extend.php';
     GW_GoPricing_VCExtend::instance();
 }