Using by all extensions for drawing settings block in tab Settings of the plugin settings page
Example:
add_action('woof_print_html_type_options_' . $this->html_type, array($this, 'woof_print_html_type_options'), 10, 1);
//settings page hook
public function woof_print_html_type_options()
{
global $WOOF;
if($WOOF){
echo woof()->render_html($this->get_ext_path() . 'views/options.php', array(
'key' => $this->html_type,
"woof_settings" => get_option('woof_settings', array())
)
[...]
Using by extensions to draw self on the front
Its enough just in init of an extension write next code:
add_action('woof_print_html_type_' . $this->html_type, array($this, 'print_html_type'), 10, 1);
Look code of by_author for example
[...]
Uses in html types as: radio, checkbox, select, mselect for printing any symbols or icons before its label
wp-content\plugins\woocommerce-products-filter\views\html_types\checkbox.php
[...]
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
[...]