Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
polymastigina
/
wp-content
/
plugins
/
email-encoder-bundle
/
core
/
includes
/
integrations
:
loader.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * * Load our custom marketing integrations * */ // Exit if accessed directly. if ( !defined( 'ABSPATH' ) ) exit; class EEB_Integrations_Loader{ function __construct(){ $this->load_integrations(); } public function load_integrations(){ $plugins = array( 'avada_builder' => 'avada_builder.php', 'bricks_builder' => 'bricks_builder.php', 'maintenance' => 'maintenance.php', 'divi_theme' => 'divi_theme.php', 'google_site_kit' => 'google_site_kit.php', 'oxygen_builder' => 'oxygen_builder.php', 'the_events_calendar' => 'the_events_calendar.php', 'wpml' => 'wpml.php', ); $services = array( //'foggy_email' => 'foggy_email.php' //Got discontinued ); $integrations = array_merge( $plugins, $services ); foreach ( $integrations as $plugin_id => $plugin_file ) : $plugin_file = 'classes/' . $plugin_file; $full_path = EEB_PLUGIN_DIR . 'core/includes/integrations/' . $plugin_file; if ( TRUE === apply_filters( 'eeb/integrations/' . $plugin_id, true ) ){ if( file_exists( $full_path ) ){ include( $plugin_file ); } } endforeach; } }