/home/vianto5/hidalgoresidences.mx/wp-content/plugins/wpforms-webhooks
Edit: /home/vianto5/hidalgoresidences.mx/wp-content/plugins/wpforms-webhooks/wpforms-webhooks.php (2516B)
.
*
* @since 1.0.0
* @author WPForms
* @package WPFormsWebhooks
* @license GPL-2.0+
* @copyright Copyright (c) 2020, WPForms LLC
*/
// Exit if accessed directly.
use WPFormsWebhooks\Plugin;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Plugin version.
*
* @since 1.3.0
*/
const WPFORMS_WEBHOOKS_VERSION = '1.5.0';
/**
* Plugin file.
*
* @since 1.3.0
*/
const WPFORMS_WEBHOOKS_FILE = __FILE__;
/**
* Plugin path.
*
* @since 1.3.0
*/
define( 'WPFORMS_WEBHOOKS_PATH', plugin_dir_path( WPFORMS_WEBHOOKS_FILE ) );
/**
* Plugin URL.
*
* @since 1.3.0
*/
define( 'WPFORMS_WEBHOOKS_URL', plugin_dir_url( WPFORMS_WEBHOOKS_FILE ) );
/**
* Check addon requirements.
*
* @since 1.0.0
* @since 1.3.0 Renamed from wpforms_webhooks_required to wpforms_webhooks_load.
* @since 1.3.0 Uses requirements feature.
*/
function wpforms_webhooks_load() {
$requirements = [
'file' => WPFORMS_WEBHOOKS_FILE,
'wpforms' => '1.9.5',
];
if ( ! function_exists( 'wpforms_requirements' ) || ! wpforms_requirements( $requirements ) ) {
return;
}
wpforms_webhooks();
}
add_action( 'wpforms_loaded', 'wpforms_webhooks_load' );
/**
* Get the instance of the addon main class.
*
* @since 1.0.0
*
* @return Plugin
*/
function wpforms_webhooks() {
require_once WPFORMS_WEBHOOKS_PATH . 'vendor/autoload.php';
return Plugin::get_instance();
}