HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/bt667/www/wp-content/plugins/mvp_upselling/includes/mvp-upselling-importer.php
<?php
/**
 * @since      1.1.0
 * @package    MVP Upselling
 * @subpackage MVP Upselling/includes
 * @author     Rohit Sharma
 */

class MVP_Upselling_Importer {
	protected $loader,$plugin_name,$version;

	/**
	 * Define the core functionality of the plugin.
	 *
	 * Set the plugin name and the plugin version that can be used throughout the plugin.
	 * Load the dependencies, define the locale, and set the hooks for the admin area and
	 * the public-facing side of the site.
	 *
	 * @since    1.1.0
	 */

	public function __construct() {
		$this->plugin_name 	= 'MVP Upselling';
		$this->version 		= '1.1.0';
		$this->load_dependencies();
	}

	/**
	 * @description  Load the required dependencies for this plugin.
	 *
	 * @since    1.1.0
	 * @access   private
	 * @author   Rohit Sharma
	 */

	//	Include Bridge File
	private function load_dependencies() {
		if ( file_exists( plugin_dir_path( __DIR__ ) . 'includes/cmb/init.php' ) ) {
			require_once plugin_dir_path( __DIR__ ) . 'includes/cmb/init.php';
		}elseif ( file_exists( plugin_dir_path( __DIR__ ) . 'includes/CMB/init.php' ) ) {
			require_once plugin_dir_path( __DIR__ ) . 'includes/CMB/init.php';
		}

		// Load Helper File
		require_once plugin_dir_path( __DIR__ ).'includes/mvp-upselling-helper.php';
		// Load Admin File
		require_once plugin_dir_path( __DIR__ ) . 'admin/mvp-upselling-admin.php';
		// Load Frontend File
		require_once plugin_dir_path( __DIR__ ) . 'public/mvp-upselling-frontend.php';
	}

	/**
	 * @description The name of the plugin used to uniquely identify it within the context of
	 *	  			WordPress and to define internationalization functionality.
	 *
	 * @since     1.1.0
	 * @return    string    The name of the plugin.
	 * @author    Rohit Sharma
	 */

	public function get_plugin_name() {
		return $this->plugin_name;
	}

	/**
	 * @description Retrieve the version number of the plugin.
	 *
	 * @since     1.1.0
	 * @return    string    The version number of the plugin.
	 * @author    Rohit Sharma
	 */

	public function get_version() {
		return $this->version;
	}
}