worldline-for-woocommerce
Last commit date
assets
1 week ago
inc
1 week ago
languages
1 week ago
modules
1 week ago
shared
1 week ago
src
1 week ago
vendor
1 week ago
.eslintrc.js
1 week ago
BUILD_INFO.txt
1 week ago
LICENSE
1 week ago
SECURITY.md
1 week ago
class-plugin.php
1 week ago
composer.json
1 week ago
config.php
1 week ago
package.json
1 week ago
readme.txt
1 week ago
tsconfig.json
1 week ago
uninstall.php
1 week ago
webpack.config.js
1 week ago
worldline-for-woocommerce.php
1 week ago
worldline-for-woocommerce.php
55 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Plugin Name: Worldline Global Online Pay for WooCommerce |
| 5 | * Description: Worldline Global Online Pay for WooCommerce. |
| 6 | * Version: 2.5.22 |
| 7 | * SHA: c7ea708 |
| 8 | * Requires at least: 6.3 |
| 9 | * Requires PHP: 7.4 |
| 10 | * Requires Plugins: woocommerce |
| 11 | * WC requires at least: 8.6 |
| 12 | * WC tested up to: 10.4.2 |
| 13 | * Author: Worldline |
| 14 | * Author URI: https://worldline.com |
| 15 | * Text Domain: worldline-for-woocommerce |
| 16 | * Domain Path: /languages |
| 17 | */ |
| 18 | |
| 19 | declare(strict_types=1); |
| 20 | |
| 21 | namespace Inpsyde\WorldlineForWoocommerce; |
| 22 | |
| 23 | use Inpsyde\Modularity\Package; |
| 24 | use Syde\Vendor\Worldline\Inpsyde\WorldlineForWoocommerce\Plugin; |
| 25 | |
| 26 | require_once __DIR__ . '/class-plugin.php'; |
| 27 | |
| 28 | define('MAIN_PLUGIN_FILE', __FILE__); |
| 29 | |
| 30 | if (is_readable(dirname(__FILE__) . '/vendor/autoload.php')) { |
| 31 | include_once dirname(__FILE__) . '/vendor/autoload.php'; |
| 32 | } |
| 33 | |
| 34 | add_action('plugins_loaded', static function (): void { |
| 35 | static $package; |
| 36 | |
| 37 | if (!$package) { |
| 38 | /** @var callable $bootstrap */ |
| 39 | $bootstrap = require __DIR__ . '/inc/bootstrap.php'; |
| 40 | $onError = require __DIR__ . '/inc/error.php'; |
| 41 | $modules = (require __DIR__ . '/inc/modules.php')(); |
| 42 | $modules = apply_filters('wlop.modules_list', $modules); |
| 43 | |
| 44 | $package = $bootstrap( |
| 45 | __FILE__, |
| 46 | $onError, |
| 47 | ...$modules |
| 48 | ); |
| 49 | do_action('wlop.plugin_init'); |
| 50 | } |
| 51 | }, 5); |
| 52 | |
| 53 | global $wpdb; |
| 54 | Plugin::instance($wpdb, __FILE__); |
| 55 |