File: /wordpress/mu-plugins/wpcloud-bot-protection-loader.php
<?php
if ( ! function_exists( 'wpcloud_bot_protection_loader' ) ) {
function wpcloud_bot_protection_loader() {
$should_load = defined( 'WPC_BOT_PROTECTION_ENABLED' ) && (bool) WPC_BOT_PROTECTION_ENABLED
&& defined( 'ATOMIC_SITE_ID' ) && '' !== (string) constant( 'ATOMIC_SITE_ID' )
&& defined( 'ATOMIC_SITE_API_KEY' ) && '' !== (string) constant( 'ATOMIC_SITE_API_KEY' );
$should_load = apply_filters( 'wpcloud_bot_protection_enable', $should_load );
if ( $should_load ) {
$main = __DIR__ . '/wpcloud-bot-protection/wpcloud-bot-protection.php';
if ( file_exists( $main ) ) {
require_once $main;
}
}
}
add_action( 'muplugins_loaded', 'wpcloud_bot_protection_loader' );
}