PluginProbe
WooReer / 3.1.5
WooReer v3.1.5
trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 3.0.0 3.0.1 All 34 releases
wcsdm / wcsdm.php
wcsdm.php
65 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The plugin bootstrap file
4 *
5 * This file is read by WordPress to generate the plugin information in the plugin
6 * admin area. This file also includes all of the dependencies used by the plugin,
7 * registers the activation and deactivation functions, and defines a function
8 * that starts the plugin.
9 *
10 * @link https://github.com/sofyansitorus/WooCommerce-Shipping-Distance-Matrix
11 * @since 1.0.0
12 * @package Wcsdm
13 *
14 * @wordpress-plugin
15 * Plugin Name: WooReer
16 * Plugin URI: https://wooreer.com
17 * Description: WooCommerce shipping rates calculator allows you to offer shipping rates based on distance using Google Maps, Mapbox, DistanceMatrix.ai, Geoapify, or HERE.
18 * Version: 3.1.5
19 * Author: Sofyan Sitorus
20 * Author URI: https://github.com/sofyansitorus
21 * License: GPL-2.0+
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Text Domain: wcsdm
24 * Domain Path: /languages
25 *
26 * WC requires at least: 8.8
27 * WC tested up to: 10.7
28 */
29
30 // If this file is called directly, abort.
31 if ( ! defined( 'ABSPATH' ) ) {
32 die;
33 }
34
35 // Define plugin main constants.
36 define( 'WCSDM_FILE', __FILE__ );
37 define( 'WCSDM_PATH', plugin_dir_path( WCSDM_FILE ) );
38 define( 'WCSDM_URL', plugin_dir_url( WCSDM_FILE ) );
39
40 // Load the helpers.
41 require_once WCSDM_PATH . '/includes/constants.php';
42 require_once WCSDM_PATH . '/includes/helpers.php';
43
44 // Register the class autoload.
45 if ( function_exists( 'wcsdm_autoload' ) ) {
46 spl_autoload_register( 'wcsdm_autoload' );
47 }
48
49 // Load the legacy helpers.
50 require_once WCSDM_PATH . '/legacy/constants.php';
51 require_once WCSDM_PATH . '/legacy/helpers.php';
52
53 // Register the legacy class autoload.
54 if ( function_exists( 'wcsdm_legacy_autoload' ) ) {
55 spl_autoload_register( 'wcsdm_legacy_autoload' );
56 }
57
58 /**
59 * Boot the plugin
60 */
61 if ( wcsdm_is_plugin_active( 'woocommerce/woocommerce.php' ) && class_exists( 'Wcsdm' ) ) {
62 // Initialize the Wcsdm class.
63 Wcsdm::get_instance();
64 }
65