woof_delete_img_url
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 [...]
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 [...]
Allows to redefine text search SQL request on the fly
add_filter('woof_text_search_query', function($where, $woof_text) { global $wpdb; $where .= "AND $wpdb->posts.ID IN(15,39,121)"; return $where; }, 99, 2);From v.2.2.5/1.2.5 [...]
Allows to redefine images of the image filter term on the fly depending of the current situation
add_filter('woof_taxonomy_image', function($image, $term) { //change images on the fly depending of the current situation if (isset($term->term_id) AND $term->ID === 777 AND intval($_REQUEST) === 23) { $image = "https://your_image_url.png"; } return $image; }, 10, 2);From v.2.2.5/1.2.5 [...]
From ver.2.2.4/1.2.4 Using this hook it is possible to rewrite view of file: \views\html_types\select.php [...]