plugin_name = 'wc-qs-wishlist'; $this->load_dependencies(); /** * Create an instance of the admin class * @var QS_CF7_api_admin */ $this->admin = new QS_CF7_api_admin(); $this->admin->plugin_name = $this->plugin_name; /** * save the instance for static actions * */ self::$instance = $this; } public function init(){ } /** * Loads the required plugin files * @return [type] [description] */ public function load_dependencies(){ /** * General global plugin functions */ require_once QS_CF7_API_INCLUDES_PATH . 'class.cf7-helpers.php'; /** * admin notices class */ require_once QS_CF7_API_INCLUDES_PATH . 'class.qs-admin-notices.php'; /** * admin notices clclass */ require_once QS_CF7_API_INCLUDES_PATH . 'class-cf7-api-admin.php'; } /** * Get the current plugin instance * @return [type] [description] */ public static function get_instance() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; } }