| 1 |
<?php |
| 2 |
/* |
| 3 |
* Plugin Name: WPCargo |
| 4 |
* Plugin URI: https://www.wpcargo.com/ |
| 5 |
* Description: WPCargo is a WordPress plug-in designed to provide ideal technology solution for your Cargo and Courier Operations. Whether you are an exporter, freight forwarder, importer, supplier, customs broker, overseas agent, or warehouse operator, WPCargo helps you to increase the visibility, efficiency, and quality services of your cargo and shipment business. |
| 6 |
* Author: <a href="http://www.wptaskforce.com/">WPTaskForce</a> |
| 7 |
* Text Domain: wpcargo |
| 8 |
* Domain Path: /languages |
| 9 |
* Version: 8.0.3 |
| 10 |
*/ |
| 11 |
/* |
| 12 |
WPCargo - Track and Trace Plugin |
| 13 |
Copyright (C) 2024 WPTaskForce |
| 14 |
This program is free software: you can redistribute it and/or modify |
| 15 |
it under the terms of the GNU General Public License as published by |
| 16 |
the Free Software Foundation, either version 3 of the License, or |
| 17 |
(at your option) any later version. |
| 18 |
This program is distributed in the hope that it will be useful, |
| 19 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 |
GNU General Public License for more details. |
| 22 |
You should have received a copy of the GNU General Public License |
| 23 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 24 |
WPCargo Copyright (C) 2015 WPTaskForce |
| 25 |
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
| 26 |
This is free software, and you are welcome to redistribute it |
| 27 |
under certain conditions; type `show c' for details. |
| 28 |
*/ |
| 29 |
if (!defined('ABSPATH')) { |
| 30 |
exit; // Exit if accessed directly |
| 31 |
} |
| 32 |
|
| 33 |
//* Defined constant |
| 34 |
define('WPCARGO_TEXTDOMAIN', 'wpcargo'); |
| 35 |
define('WPCARGO_VERSION', '8.0.3'); |
| 36 |
define('WPCARGO_DB_VERSION', '2.0.0'); |
| 37 |
define('WPCARGO_FILE_DIR', __FILE__); |
| 38 |
define('WPCARGO_PLUGIN_URL', plugin_dir_url(WPCARGO_FILE_DIR)); |
| 39 |
define('WPCARGO_PLUGIN_PATH', plugin_dir_path(WPCARGO_FILE_DIR)); |
| 40 |
//** Include files |
| 41 |
//** Admin |
| 42 |
require_once(WPCARGO_PLUGIN_PATH . 'admin/wpc-admin.php'); |
| 43 |
require_once(WPCARGO_PLUGIN_PATH . 'admin/classes/class-database.php'); |
| 44 |
require_once(WPCARGO_PLUGIN_PATH . 'admin/classes/class-wpcargo.php'); |
| 45 |
|
| 46 |
//** Frontend |
| 47 |
require_once(WPCARGO_PLUGIN_PATH . '/includes/packages.php'); |
| 48 |
require_once(WPCARGO_PLUGIN_PATH . '/classes/class-wpc-scripts.php'); |
| 49 |
require_once(WPCARGO_PLUGIN_PATH . '/classes/class-wpc-shortcode.php'); |
| 50 |
require_once(WPCARGO_PLUGIN_PATH . '/classes/class-wpc-print.php'); |
| 51 |
|
| 52 |
//** Load text Domain |
| 53 |
add_action('init', array('WPC_Admin', 'wpcargo_load_textdomain'), 30); |
| 54 |
// Database Set up |
| 55 |
//** Run when plugin installation |
| 56 |
//** Add user role |
| 57 |
register_activation_hook(WPCARGO_FILE_DIR, array('WPC_Admin', 'add_user_role')); |
| 58 |
register_deactivation_hook(WPCARGO_FILE_DIR, array('WPC_Admin', 'remove_user_role')); |
| 59 |
//** Create track page |
| 60 |
register_activation_hook(WPCARGO_FILE_DIR, array('WPC_Admin', 'add_wpc_custom_pages')); |
| 61 |
|