diff --git a/compatibility/litespeed/litespeed.php b/compatibility/litespeed/litespeed.php index fd01a4e98..3e222bd0d 100644 --- a/compatibility/litespeed/litespeed.php +++ b/compatibility/litespeed/litespeed.php @@ -18,7 +18,11 @@ public function rep_item_id() { } public function condition(): bool { - return defined( 'LSCWP_V' ); + if ( ! defined( 'LSCWP_V' ) ) { + return false; + } + + return (bool) apply_filters( 'litespeed_esi_status', false ); } public function init_hooks() {