cloggier
↑
/wp-content/plugins
marsupiataab
hypermuffing
cloggier
hypermuffing
marsupiataab
assets/
cloggier
marsupiataab
languages/
cloggier
marsupiataab
src/
cloggier
marsupiataab
templates/
cloggier
marsupiataab
vendor/
cloggier
marsupiataab
CHANGELOG.md
2,739 B
cloggier
marsupiataab
wpforms-sendinblue.php
2,162 B
cloggier
marsupiataab
<?php /** * Plugin Name: WPForms Brevo * Plugin URI: https://wpforms.com * Description: Brevo integration with WPForms. * Requires at least: 5.5 * Requires PHP: 7.0 * Author: WPForms * Author URI: https://wpforms.com * Version: 1.4.0 * 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.4.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.1', ]; 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(); }
cloggier