<?php
/*
	Plugin Name: WPCargo Import and Export Add-ons
	Plugin URI: http://www.wpcargo.com
	Description: Allows you to Import/Export your shipments or to make backups. Requires WPCargo plugin to work.
	Version: 4.4.3
	Author: <a href="http://wptaskforce.com/">WPTaskforce</a>
	Author URI: http://www.wpcargo.com
	Text Domain: wpc-import-export
	Domain Path: /languages
*/
if ( ! defined( 'WPINC' ) ) {
	die;
}
/** Define plugin constants */
define( 'WPC_IMPORT_EXPORT_VERSION', '4.4.3' );
define( 'WPC_IMPORT_EXPORT_TEXTDOMAIN', 'wpc-import-export' );
define( 'WPC_IMPORT_EXPORT_BASENAME', plugin_basename( __FILE__ ) );
define( 'WPC_IMPORT_EXPORT_URL', plugin_dir_url( __FILE__ ) );
define( 'WPC_IMPORT_EXPORT_PATH', plugin_dir_path( __FILE__ ) );
require_once(WPC_IMPORT_EXPORT_PATH.'admin/classes/class-scripts.php');
require_once(WPC_IMPORT_EXPORT_PATH.'admin/classes/class-import-export.php');
require_once(WPC_IMPORT_EXPORT_PATH.'admin/includes/functions.php');
require_once(WPC_IMPORT_EXPORT_PATH.'admin/includes/hooks.php');
$WPCargo_Import_Export = new WPCargo_Import_Export;
$WPCargo_Import_Export->create_shortcode();
// Plugin Localization for the text Domain
function wpcargo_import_and_export_load_textdomain() {
	load_plugin_textdomain( 'wpc-import-export', false, '/wpcargo-import-export-addons/languages' );
}
add_action( 'plugins_loaded', 'wpcargo_import_and_export_load_textdomain' );
// Load the auto-update class
function wpcargo_import_and_export_plugin_activate_au(){
	require_once( WPC_IMPORT_EXPORT_PATH. 'admin/classes/wp_autoupdate.php');
	$plugin_remote_path = 'http://www.wpcargo.com/repository/wpcargo-import-export-addons/updates-php7.2.php';
	new WPCargo_Import_Export_AutoUpdate ( WPC_IMPORT_EXPORT_VERSION, $plugin_remote_path, WPC_IMPORT_EXPORT_BASENAME );
}
add_action( 'init', 'wpcargo_import_and_export_plugin_activate_au' );