| Server IP : 103.249.100.196 / Your IP : 216.73.216.194 Web Server : Apache System : Linux cp196.maytech.vn 5.14.0-687.66.2.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 6 16:20:31 EST 2026 x86_64 User : dlsafepha ( 1078) PHP Version : 8.2.36 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home2/dlsafepha/public_html/wp-content/plugins/popup-maker/includes/ |
Upload File : |
<?php
/**
* Initialize Integrations
*
* @package PopupMaker
* @copyright Copyright (c) 2024, Code Atlantic LLC
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Ninja Forms Integration
require_once 'integrations/class-pum-ninja-forms.php';
function pum_initialize_integrations() {
// WooCommerce Integration
if ( function_exists( 'WC' ) || class_exists( 'WooCommerce' ) ) {
require_once 'integrations/class-pum-woocommerce-integration.php';
PUM_Woocommerce_Integration::init();
}
// BuddyPress Integration
if ( function_exists( 'buddypress' ) || class_exists( 'BuddyPress' ) ) {
require_once 'integrations/class-pum-buddypress-integration.php';
PUM_BuddyPress_Integration::init();
}
// CF7 Forms Integration
if ( class_exists( 'WPCF7' ) || ( defined( 'WPCF7_VERSION' ) && WPCF7_VERSION ) ) {
require_once 'integrations/class-pum-cf7.php';
PUM_CF7_Integration::init();
}
// Gravity Forms Integration
if ( class_exists( 'RGForms' ) ) {
require_once 'integrations/class-pum-gravity-forms.php';
PUM_Gravity_Forms_Integation::init();
}
// WPML Integration
if ( defined( 'ICL_SITEPRESS_VERSION' ) && ICL_SITEPRESS_VERSION ) {
require_once 'integrations/class-pum-wpml.php';
PUM_WPML_Integration::init();
}
}
add_action( 'init', 'pum_initialize_integrations' );