swift_performance_is_woocommerce_active

You can override detection of WooCommerce plugin by Swift Performance

Parameters

$is_active

boolean which represents is WooCommerce active. True if it is active, false if it isn’t


Return

boolean


Example

// Disabling WooCommerce features in Swift Performance
add_filter('swift_performance_is_woocommerce_active', function($is_active){
 return false;
});