PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

woof_disable_filter doesn't disable filter

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi,

 

I want to disable Husky on a few pages and found the woof_disable_filter filter. The way this is written is that it seems to force the filters to be enabled instead of disabled.

 

I have changed the is_should_init() function from:

if (is_admin() || apply_filters('woof_disable_filter', false)) {
    return true;
}

To:

if (is_admin()) {
     return true;
}

if (apply_filters('woof_disable_filter', false)) {
    return false;
}


Just wanted to report the bug and fix since I need to turn Husky off on some pages.

Hello

Great! Thank you for your cooperation.