| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: PayPlug pour WooCommerce (Officiel) |
| 4 |
* Plugin URI: https://www.payplug.com/modules/woocomerce |
| 5 |
* Description: The online payment solution combining simplicity and first-rate support to boost your sales. |
| 6 |
* Author: PayPlug |
| 7 |
* Author URI: https://www.payplug.com/ |
| 8 |
* Text Domain: payplug |
| 9 |
* Domain Path: /languages |
| 10 |
* Version: 1.0.11 |
| 11 |
* License: GPLv3 or later |
| 12 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 13 |
*/ |
| 14 |
|
| 15 |
namespace Payplug\PayplugWoocommerce; |
| 16 |
|
| 17 |
// Exit if accessed directly |
| 18 |
if ( ! defined( 'ABSPATH' ) ) { |
| 19 |
exit; |
| 20 |
} |
| 21 |
|
| 22 |
define( 'PAYPLUG_GATEWAY_VERSION', '1.0.11' ); |
| 23 |
define( 'PAYPLUG_GATEWAY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
| 24 |
define( 'PAYPLUG_GATEWAY_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 25 |
define( 'PAYPLUG_GATEWAY_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); |
| 26 |
|
| 27 |
/** |
| 28 |
* Plugin bootstrap function. |
| 29 |
*/ |
| 30 |
function init() { |
| 31 |
if ( file_exists( plugin_dir_path( __FILE__ ) . '/vendor/autoload.php' ) ) { |
| 32 |
require_once plugin_dir_path( __FILE__ ) . '/vendor/autoload.php'; |
| 33 |
} |
| 34 |
|
| 35 |
PayplugWoocommerceHelper::load_plugin_textdomain( plugin_basename( dirname( __FILE__ ) ) . '/languages' ); |
| 36 |
|
| 37 |
PayplugWoocommerce::get_instance(); |
| 38 |
} |
| 39 |
add_action( 'plugins_loaded', __NAMESPACE__ . '\\init' ); |
| 40 |
|