-
Notifications
You must be signed in to change notification settings - Fork 13
/
gerencianet-oficial.php
70 lines (57 loc) · 2.27 KB
/
gerencianet-oficial.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
namespace Gerencianet_Oficial;
use GN_Includes\Gerencianet_Oficial;
use GN_Includes\Gerencianet_Activator;
use GN_Includes\Gerencianet_Deactivator;
/**
* Plugin Name: Efí by Gerencianet Oficial
* Plugin URI: https://wordpress.org/plugins/woo-gerencianet-official/
* Description: Gateway de pagamento Efi by Gerencianet para WooCommerce
* Version: 2.2.2
* Author: Efi by Gerencianet
* Author URI: https://www.sejaefi.com.br
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: gerencianet-oficial
* Domain Path: /languages
* WC requires at least: 5.0.0
* WC tested up to: 8.3.0
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'GERENCIANET_OFICIAL_VERSION', '2.2.2' );
define( 'GERENCIANET_BOLETO_ID', 'WC_Gerencianet_Boleto' );
define( 'GERENCIANET_CARTAO_ID', 'WC_Gerencianet_Cartao' );
define( 'GERENCIANET_PIX_ID', 'WC_Gerencianet_Pix' );
define( 'GERENCIANET_OPEN_FINANCE_ID', 'WC_Gerencianet_Open_Finance' );
/**
* Define global path constants
*/
define( 'GERENCIANET_OFICIAL_PLUGIN_FILE', __FILE__ );
define( 'GERENCIANET_OFICIAL_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'GERENCIANET_OFICIAL_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
require_once GERENCIANET_OFICIAL_PLUGIN_PATH . 'includes/helpers.php';
/**
* The code that runs during plugin activation.
* This action is documented in includes/class-gerencianet-oficial-activator.php
*/
register_activation_hook( GERENCIANET_OFICIAL_PLUGIN_FILE, array( Gerencianet_Activator::class, 'activate' ) );
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-gerencianet-oficial-deactivator.php
*/
register_deactivation_hook( GERENCIANET_OFICIAL_PLUGIN_FILE, array( Gerencianet_Deactivator::class, 'deactivate' ) );
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*/
function run_gerencianet_oficial() {
$plugin = new Gerencianet_Oficial();
$plugin->run();
}
run_gerencianet_oficial();