??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/sendmaxagency.com/wp-content/plugins/surerank/inc/third-party-integrations/init.php
⬅ Kembali
<?php
/**
* Third-party plugins initialization
*
* This file handles initialization of all third-party plugin integrations.
*
* @package surerank
* @since 1.5.0
*/
namespace SureRank\Inc\ThirdPartyIntegrations;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
use SureRank\Inc\Functions\Settings;
use SureRank\Inc\ThirdPartyIntegrations\Multilingual\Init as Multilingual;
use SureRank\Inc\Traits\Get_Instance;
/**
* Third-party plugins initialization class
*
* Manages loading of all integrations with third-party plugins.
*
* @since 1.5.0
*/
class Init {
use Get_Instance;
/**
* Constructor
*
* @since 1.5.0
*/
public function __construct() {
if ( is_admin() ) {
$this->load_admin_integrations();
}
$this->load_frontend_integrations();
}
/**
* Load admin-specific integrations
*
* @since 1.5.0
* @return void
*/
public function load_admin_integrations(): void {
if ( defined( 'ELEMENTOR_VERSION' ) ) {
Elementor::get_instance();
}
Avada_Fusion_Builder::get_instance();
}
/**
* Load frontend-specific integrations
*
* Only loads integration classes when the corresponding plugin is active,
* avoiding unnecessary class autoloading and constructor overhead.
*
* @since 1.5.0
* @return void
*/
public function load_frontend_integrations(): void {
$enable_woocommerce_integration = $this->is_integration_enabled( 'enable_woocommerce_integration' );
$enable_angie_integration = $this->is_integration_enabled( 'enable_angie_integration' );
if ( defined( 'BRICKS_VERSION' ) ) {
Bricks::get_instance();
}
if ( class_exists( 'WooCommerce' ) && $enable_woocommerce_integration ) {
Woocommerce::get_instance();
}
if ( defined( 'ANGIE_VERSION' ) && $enable_angie_integration ) {
Angie::get_instance();
}
if ( defined( 'CARTFLOWS_VER' ) ) {
CartFlows::get_instance();
}
if ( defined( 'ET_BUILDER_VERSION' ) ) {
Divi::get_instance();
}
if ( defined( '__BREAKDANCE_VERSION' ) ) {
Breakdance::get_instance();
}
Multilingual::get_instance();
}
/**
* Check whether a third-party integration is enabled.
*
* Settings are normalized to booleans before being used with plugin
* availability checks so malformed stored values do not accidentally load
* an integration.
*
* @param string $setting_key Integration setting key.
* @return bool
* @since 1.7.5
*/
private function is_integration_enabled( string $setting_key ): bool {
$value = Settings::get( $setting_key );
return true === $value || 1 === $value || '1' === $value || 'true' === $value;
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 multilingual
dir
—
2026-06-18 16:45
🐘 angie.php
php
15.8 KB
2026-06-18 16:45
🐘 avada-fusion-builder.php
php
1.4 KB
2026-06-18 16:45
🐘 breakdance.php
php
9.3 KB
2026-06-18 16:45
🐘 bricks.php
php
6 KB
2026-06-18 16:45
🐘 cart-flows.php
php
2.4 KB
2026-06-18 16:45
🐘 divi.php
php
14.3 KB
2026-06-18 16:45
🐘 elementor.php
php
1.6 KB
2026-06-18 16:45
🐘 init.php
php
2.6 KB
2026-06-18 16:45
🐘 woocommerce.php
php
1.9 KB
2026-06-18 16:45