woof_override_seo_request_uri
From v.2.2.6/1.2.6 Uses for extension ‘SEO URL request‘ – passes the current URL. Need to adapt different servers if necessary [...]
From v.2.2.6/1.2.6 Uses for extension ‘SEO URL request‘ – passes the current URL. Need to adapt different servers if necessary [...]
From v.2.2.6/1.2.6 Uses for extension ‘SEO URL request‘ and allows to add additional languages for plugins like Polylang Example:
add_filter('woof_seo_rules_langs',function($langs){
$langs = array_merge($langs, array('en_US', 'es_ES'));
return array_unique($langs);
});
[...]
By default count of product is limited to 10,000. But you can extend this value:
add_filter('woof_quick_search_products_limit', function($count){
return 30000;
});
But remember – more products – > more strong server you need (RAM, CPU)!
[...]
Allows to change image url for delete-image.
add_filter('woof_delete_img_url', function($current_img) {
return 'https://my-site.com/wp-content/my-woof-del.png';
}, 10, 1);
From v.2.2.5.6
[...]
For filter-images (premium extension) – allows hide/show term description in tooltip. Default is: true.
add_filter('woof_image_add_term_desc', function($tax_slug) {
return false;
}, 10, 1);
[...]
Works after print of each filter element in WOOF filter form.
add_action('woof_after_draw_filter', function($key, $shortcode_atts) {
//do smth here
}, 99, 2);
From v.2.2.5/1.2.5
[...]
Works before print of each filter element in WOOF filter form.
add_action('woof_before_draw_filter', function($key, $shortcode_atts) {
//do here
}, 99, 2);
From v.2.2.5/1.2.5
[...]
Hook for shortcode for changing shortcode arguments on the fly depending of business conditions
add_filter('woof_filter_shortcode_args', function($args) {
//do smth with $args here
return $args;
}, 99, 1);
From v.2.2.5/1.2.5
[...]
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
[...]
Allows to change text for ‘Clear all’ button in the search navigation panel
add_filter('woof_clear_all_text', function($default_text) {
return 'Clear the filter';
}, 99, 1);
From v.2.2.5/1.2.5
[...]