class-wpperformance.php line 183
-
Hi there,
We are running into an issue with the way you are detecting if WooCommerce is enabled.
Line 183:
$enabled_woocommerce = function_exists( 'is_woocommerce' );You should check it this way:
https://docs.woocommerce.com/document/create-a-plugin/Furthermore on line 185, you should check if is_account_page && is_checkout exists:
$wc_invalid_disable = ! $enabled_woocommerce || $invalid_disable || is_account_page() || is_checkout();
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘class-wpperformance.php line 183’ is closed to new replies.