forked from mercadopago/cart-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwoocommerce-mercadopago.php
36 lines (31 loc) · 1.24 KB
/
woocommerce-mercadopago.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Plugin Name: Mercado Pago payments for WooCommerce
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
* Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
* Version: 6.3.1
* Author: Mercado Pago
* Author URI: https://developers.mercadopago.com/
* Text Domain: woocommerce-mercadopago
* Domain Path: /i18n/languages/
* WC requires at least: 5.5.2
* WC tested up to: 6.3.0
*
* @package MercadoPago
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! defined( 'WC_MERCADOPAGO_BASENAME' ) ) {
define( 'WC_MERCADOPAGO_BASENAME', plugin_basename( __FILE__ ) );
}
if ( ! function_exists( 'is_plugin_active' ) ) {
include_once ABSPATH . 'wp-admin/includes/plugin.php';
}
if ( ! class_exists( 'WC_WooMercadoPago_Init' ) ) {
include_once dirname( __FILE__ ) . '/includes/module/class-wc-woomercadopago-init.php';
register_activation_hook( __FILE__, array( 'WC_WooMercadoPago_Init', 'mercadopago_plugin_activation' ) );
register_activation_hook( __FILE__, array( 'WC_WooMercadoPago_Init', 'mercadopago_handle_saved_cards_notice' ) );
add_action( 'plugins_loaded', array( 'WC_WooMercadoPago_Init', 'woocommerce_mercadopago_init' ) );
}