HUSKY - WooCommerce Products Filter Professional

Botoscope is currently in early access

woof_print_html_type_options_{type}

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())
                )
 [...]

woof_print_html_type_{type}

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 [...]

woof_before_term_name

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   [...]

woof_add_items_keys

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;
    }
  [...]

woof_add_html_types

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;
    }
    [...]

woof_products_query

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/ [...]

woof_get_request_data

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   [...]

woof_sort_terms_before_out

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 [...]