PluginProbe
seQura / 2.0.0
seQura v2.0.0
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
sequra / sequra.php

sequra.php in seQura 2.0.0, at sequra.php

52 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: SeQura
5 * Plugin URI: https://sequra.es/
6 * Description: Ofrece las opciones de pago con SeQura
7 * Version: 2.0.0
8 * Author: "SeQura Tech" <dev+wordpress@sequra.es>
9 * Author URI: https://engineering.sequra.es/
10 * WC requires at least: 4.0
11 * WC tested up to: 7.4.1
12 * Text Domain: wc_sequra
13 * Domain Path: /i18n/languages/
14 * Requires at least: 5.9
15 * Requires PHP: 7.2
16 *
17 * Copyright (C) 2023 SeQura Tech
18 *
19 * License: GPL v3
20 *
21 * This program is free software: you can redistribute it and/or modify
22 * it under the terms of the GNU General Public License as published by
23 * the Free Software Foundation, either version 3 of the License, or
24 * (at your option) any later version.
25 *
26 * This program is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 * GNU General Public License for more details.
30 *
31 * You should have received a copy of the GNU General Public License
32 * along with this program. If not, see <http://www.gnu.org/licenses/>
33 *
34 * @package woocommerce-sequraacheckout
35 */
36
37 // Make sure old WooCommerce SeQura is not installed.
38 if ( ! defined( 'WC_SEQURA_PLG_PATH' ) && ! file_exists( WP_PLUGIN_DIR . '/woocommerce-sequra' ) ) {
39 define( 'SEQURACHECKOUT_VERSION', '2.0.0' );
40 define( 'WC_SEQURA_PLG_PATH', WP_PLUGIN_DIR . '/' . basename( plugin_dir_path( __FILE__ ) ) . '/' );
41 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'sequrapayment_action_links' );
42 register_activation_hook( __FILE__, 'sequra_activation' );
43 require_once WC_SEQURA_PLG_PATH . 'gateway-sequra.php';
44 } else {
45 add_action(
46 'admin_notices',
47 function () {
48 echo '<div id="message" class="error"><p>' . esc_html( __( 'Por favor, desinstale y elimine primero el plugin "Pasarela de pago para Sequra" para poder usar el nuevo "Checkout con SeQura"', 'sequra' ) ) . '</p></div>';
49 }
50 );
51 }
52