PluginProbe
WPCargo Track & Trace / trunk
WPCargo Track & Trace vtrunk
8.0.5 8.0.3 8.0.4 trunk 6.10.0 6.10.1 6.10.2 6.10.3 6.10.4 6.10.5 6.10.6 6.10.8 6.11.0 6.12.2 6.13.0 6.13.1 6.13.3 6.13.4 6.13.5 6.13.6 6.9.0 6.9.1 6.9.2 6.9.3 6.9.4 All 38 releases
wpcargo / wpcargo.php

wpcargo.php in WPCargo Track & Trace trunk, at wpcargo.php

63 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 * License: GPL v2 or later
9 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
10 * Domain Path: /languages
11 * Version: 8.0.5
12 */
13 /*
14 WPCargo - Track and Trace Plugin
15 Copyright (C) 2024 WPTaskForce
16 This program is free software: you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation, either version 3 of the License, or
19 (at your option) any later version.
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24 You should have received a copy of the GNU General Public License
25 along with this program. If not, see <http://www.gnu.org/licenses/>.
26 WPCargo Copyright (C) 2015 WPTaskForce
27 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
28 This is free software, and you are welcome to redistribute it
29 under certain conditions; type `show c' for details.
30 */
31 if (!defined('ABSPATH')) {
32 exit; // Exit if accessed directly
33 }
34
35 //* Defined constant
36 define('WPCARGO_TEXTDOMAIN', 'wpcargo');
37 define('WPCARGO_VERSION', '8.0.5');
38 define('WPCARGO_DB_VERSION', '2.0.0');
39 define('WPCARGO_FILE_DIR', __FILE__);
40 define('WPCARGO_PLUGIN_URL', plugin_dir_url(WPCARGO_FILE_DIR));
41 define('WPCARGO_PLUGIN_PATH', plugin_dir_path(WPCARGO_FILE_DIR));
42 //** Include files
43 //** Admin
44 require_once(WPCARGO_PLUGIN_PATH . 'admin/wpc-admin.php');
45 require_once(WPCARGO_PLUGIN_PATH . 'admin/classes/class-database.php');
46 require_once(WPCARGO_PLUGIN_PATH . 'admin/classes/class-wpcargo.php');
47
48 //** Frontend
49 require_once(WPCARGO_PLUGIN_PATH . '/includes/packages.php');
50 require_once(WPCARGO_PLUGIN_PATH . '/classes/class-wpc-scripts.php');
51 require_once(WPCARGO_PLUGIN_PATH . '/classes/class-wpc-shortcode.php');
52 require_once(WPCARGO_PLUGIN_PATH . '/classes/class-wpc-print.php');
53
54 //** Load text Domain
55 add_action('init', array('WPC_Admin', 'wpcargo_load_textdomain'), 30);
56 // Database Set up
57 //** Run when plugin installation
58 //** Add user role
59 register_activation_hook(WPCARGO_FILE_DIR, array('WPC_Admin', 'add_user_role'));
60 register_deactivation_hook(WPCARGO_FILE_DIR, array('WPC_Admin', 'remove_user_role'));
61 //** Create track page
62 register_activation_hook(WPCARGO_FILE_DIR, array('WPC_Admin', 'add_wpc_custom_pages'));
63