File: /var/www/kevin-demo/wp-content/plugins/wpforms-sendinblue/wpforms-sendinblue.php
<?php
/**
* Plugin Name: WPForms Brevo
* Plugin URI: https://wpforms.com
* Description: Brevo integration with WPForms.
* Requires at least: 5.5
* Requires PHP: 7.2
* Author: WPForms
* Author URI: https://wpforms.com
* Version: 1.5.0
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wpforms-sendinblue
* Domain Path: /languages
*
* WPForms is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* WPForms is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WPForms. If not, see <https://www.gnu.org/licenses/>.
*/
use WPFormsSendinblue\Plugin;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Plugin version.
*
* @since 1.0.0
*/
const WPFORMS_SENDINBLUE_VERSION = '1.5.0';
/**
* Plugin file.
*
* @since 1.0.0
*/
const WPFORMS_SENDINBLUE_FILE = __FILE__;
/**
* Plugin path.
*
* @since 1.0.0
*/
define( 'WPFORMS_SENDINBLUE_PATH', plugin_dir_path( WPFORMS_SENDINBLUE_FILE ) );
/**
* Plugin URL.
*
* @since 1.0.0
*/
define( 'WPFORMS_SENDINBLUE_URL', plugin_dir_url( WPFORMS_SENDINBLUE_FILE ) );
/**
* Check addon requirements.
*
* @since 1.0.0
* @since 1.3.0 Uses requirements feature.
*/
function wpforms_sendinblue_load() {
$requirements = [
'file' => WPFORMS_SENDINBLUE_FILE,
'wpforms' => '1.9.2',
];
if ( ! function_exists( 'wpforms_requirements' ) || ! wpforms_requirements( $requirements ) ) {
return;
}
wpforms_sendinblue();
}
add_action( 'wpforms_loaded', 'wpforms_sendinblue_load' );
/**
* Get the instance of the addon main class.
*
* @since 1.0.0
*
* @return Plugin
*/
function wpforms_sendinblue() {
require_once WPFORMS_SENDINBLUE_PATH . 'vendor/autoload.php';
return Plugin::get_instance();
}