| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: Backend Payments for WooCommerce |
| 5 |
* Description: Process payments from the WooCommerce Edit Order screen. |
| 6 |
* Version: 2.8.11 |
| 7 |
* Author: bfl |
| 8 |
* Text Domain: woo-mp |
| 9 |
* WC requires at least: 3.3 |
| 10 |
* WC tested up to: 11 |
| 11 |
*/ |
| 12 |
|
| 13 |
defined( 'ABSPATH' ) || die; |
| 14 |
|
| 15 |
$woo_mp_should_load = ( is_admin() && ! is_network_admin() ) || ( defined( 'DOING_CRON' ) && DOING_CRON ); |
| 16 |
|
| 17 |
/** |
| 18 |
* Filters whether the plugin should load. |
| 19 |
* |
| 20 |
* You will need to bind your callback before this plugin loads. |
| 21 |
* |
| 22 |
* Warning: This plugin is intended to be used in the WP Admin. It may not |
| 23 |
* function correctly outside of it. Loading the plugin outside of |
| 24 |
* the WP Admin may also impact the security of your site. Test each |
| 25 |
* release before updating your production site. |
| 26 |
* |
| 27 |
* @param bool $should_load Whether the plugin should load. |
| 28 |
*/ |
| 29 |
$woo_mp_should_load = apply_filters( 'woo_mp_should_load', $woo_mp_should_load ); |
| 30 |
|
| 31 |
if ( ! $woo_mp_should_load ) { |
| 32 |
return; |
| 33 |
} |
| 34 |
|
| 35 |
define( 'WOO_MP_VERSION', '2.8.11' ); |
| 36 |
define( 'WOO_MP_PRO_COMPAT_VERSION', 9 ); |
| 37 |
define( 'WOO_MP_PATH', dirname( __FILE__ ) ); |
| 38 |
define( 'WOO_MP_URL', plugins_url( '', __FILE__ ) ); |
| 39 |
define( 'WOO_MP_BASENAME', basename( dirname( __FILE__ ) ) . '/' . basename( __FILE__ ) ); |
| 40 |
|
| 41 |
require WOO_MP_PATH . '/includes/woo-mp-requirement-checks.php'; |
| 42 |
|
| 43 |
if ( ! Woo_MP_Requirement_Checks::run() ) { |
| 44 |
return; |
| 45 |
} |
| 46 |
|
| 47 |
require WOO_MP_PATH . '/includes/bootstrap.php'; |
| 48 |
|