| 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 |
| 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 easily offer shipping rates based on the distance calculated using Google Maps Distance Matrix Service API. |
| 18 |
* Version: 2.2.0 |
| 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: 3.0.0 |
| 27 |
* WC tested up to: 8.6.1 |
| 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 |
/** |
| 50 |
* Boot the plugin |
| 51 |
*/ |
| 52 |
if ( wcsdm_is_plugin_active( 'woocommerce/woocommerce.php' ) && class_exists( 'Wcsdm' ) ) { |
| 53 |
// Initialize the Wcsdm class. |
| 54 |
Wcsdm::get_instance(); |
| 55 |
} |
| 56 |
|