Ejemplo n.º 1
0
 /**
  * Return an instance of this class
  *
  * @return object
  */
 public static function instance()
 {
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 /**
  * Load required includes
  *
  * @return void
  */
 public function load_includes()
 {
     // Include & init admin classes
     if (is_admin()) {
         // Include & init admin main class
         include_once $this->plugin_path . 'includes/admin/class_admin.php';
         GW_GoPricing_Admin::instance($this->globals);
     }
     // Include & init shortcodes class
     include_once $this->plugin_path . 'includes/class_front.php';
     GW_GoPricing_Front::instance();
     // Include & init data class
     include_once $this->plugin_path . 'includes/class_data.php';
     GW_GoPricing_Data::instance();
     // Include & init shortcodes class
     include_once $this->plugin_path . 'includes/class_shortcodes.php';
     GW_GoPricing_Shortcodes::instance($this->globals);
     // Include helper class
     include_once $this->plugin_path . 'includes/class_helper.php';
 }