Using in ‘by_‘ extensions for adding its keys in system for to make the extension visible
Example:
add_filter('woof_add_items_keys', array($this, 'woof_add_items_keys'));
public function woof_add_items_keys($keys)
{
$keys = $this->html_type;
return $keys;
}
[...]
Using in taxonomy type extensions for adding its keys in system for to make the extension visible
Example:
add_filter('woof_add_html_types', array($this, 'woof_add_html_types'));
public function woof_add_html_types($types)
{
$types = __('Label', 'woocommerce-products-filter');
return $types;
}
[...]
Using only 1 time in shortcode. Needs for any custom manipulations.
For manipulations with taxonomies use https://products-filter.com/hook/woof_main_query_tax_relations/
[...]
Uses in data-gate function of the plugin: index.php -> public function get_request_data() – it is first function in the plugin which get search request data
Can be used for any manipulation with request data if its necessary
[...]
Using in html types as checkbox or radio for any manipulation with array of terms if its necessary
$terms = apply_filters('woof_sort_terms_before_out', $terms, 'checkbox');
wp-content\plugins\woocommerce-products-filter\views\html_types\checkbox.php
[...]