woof_init_archive_by_default
Allows to disable ‘Enable archives‘ in product attributes if it is necessary do programmatically on the fly
add_filter('woof_init_archive_by_default', function($is) {
return false;
}, 99, 1);

From v.2.2.5/1.2.5
Troubles? Ask for Support!
