defined( 'WP_ROCKET_VERSION' ) && ! Aeoora_Settings::get( 'tracking', 'cache_bypass', false ), 'LiteSpeed Cache' => defined( 'LSCWP_V' ) || false !== stripos( $software, 'litespeed' ), 'W3 Total Cache' => defined( 'W3TC' ), 'WP Super Cache' => function_exists( 'wp_cache_clear_cache' ), 'WP Fastest Cache' => class_exists( 'WpFastestCache' ), 'SiteGround' => function_exists( 'sg_cachepress_purge_cache' ), 'Breeze' => class_exists( 'Breeze_PurgeCache' ), 'Nginx cache' => defined( 'NGINX_HELPER_BASENAME' ), 'Cloudflare' => defined( 'CLOUDFLARE_PLUGIN_DIR' ), 'WP Engine' => defined( 'WPE_APIKEY' ) || function_exists( 'is_wpe' ), 'Kinsta' => defined( 'KINSTAMU_VERSION' ), ); return array_keys( array_filter( $found ) ); } /** * Detected plugins relevant to aeoora (for the system panel). * * @return array */ public static function environment() { $builders = array(); foreach ( array( 'Elementor' => did_action( 'elementor/loaded' ), 'Divi' => defined( 'ET_BUILDER_VERSION' ) || function_exists( 'et_setup_theme' ), 'Beaver Builder' => class_exists( 'FLBuilder' ), 'Bricks' => defined( 'BRICKS_VERSION' ), 'Oxygen' => defined( 'CT_VERSION' ), 'Breakdance' => defined( '__BREAKDANCE_VERSION' ) || defined( 'BREAKDANCE_VERSION' ), 'WPBakery' => defined( 'WPB_VC_VERSION' ), 'Brizy' => defined( 'BRIZY_VERSION' ), 'Thrive' => defined( 'TVE_VERSION' ), 'Spectra' => defined( 'UAGB_VER' ), 'Kadence Blocks' => defined( 'KADENCE_BLOCKS_VERSION' ), ) as $name => $on ) { if ( $on ) { $builders[] = $name; } } $caches = array(); foreach ( array( 'WP Rocket' => defined( 'WP_ROCKET_VERSION' ), 'LiteSpeed Cache' => defined( 'LSCWP_V' ), 'W3 Total Cache' => defined( 'W3TC' ), 'WP Super Cache' => function_exists( 'wp_cache_clear_cache' ), 'WP Fastest Cache' => class_exists( 'WpFastestCache' ), 'SiteGround' => function_exists( 'sg_cachepress_purge_cache' ), 'Breeze' => class_exists( 'Breeze_PurgeCache' ), 'Autoptimize' => defined( 'AUTOPTIMIZE_PLUGIN_VERSION' ), 'Cloudflare' => defined( 'CLOUDFLARE_PLUGIN_DIR' ), ) as $name => $on ) { if ( $on ) { $caches[] = $name; } } $multilingual = array(); if ( defined( 'ICL_SITEPRESS_VERSION' ) ) { $multilingual[] = 'WPML'; } if ( function_exists( 'pll_current_language' ) ) { $multilingual[] = 'Polylang'; } if ( defined( 'TRP_PLUGIN_VERSION' ) ) { $multilingual[] = 'TranslatePress'; } return array( 'seo' => Aeoora_Seo::active_label(), 'builders' => $builders, 'caches' => $caches, 'multilingual' => $multilingual, 'woocommerce' => class_exists( 'WooCommerce' ), 'theme' => wp_get_theme()->get( 'Name' ), 'php' => PHP_VERSION, 'wp' => get_bloginfo( 'version' ), 'dom' => class_exists( 'DOMDocument' ), 'sodium' => function_exists( 'sodium_crypto_secretbox' ), 'loopback' => get_option( 'aeoora_loopback_ok', null ), 'root' => Aeoora_Util::root_path(), ); } }