WC_Product_Table_Widget_Rating_Filter extends WC_Product_Table_Widget

Product Table implementation of WooCommerce Rating Filter Widget.

Based on version 2.6.0 of the WC_Widget_Rating_Filter class.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

__construct()  : mixed
Constructor.
body_class()  : mixed
is_table_on_page()  : mixed
unescape_commas()  : mixed
widget()  : mixed
widget function.
get_current_taxonomy()  : string
Return the currently viewed taxonomy name.
get_current_term_id()  : int
Return the currently viewed term ID.
get_current_term_slug()  : int
Return the currently viewed term slug.
get_filtered_product_count()  : int
Count products after other filters have occurred by adjusting the main query.
get_main_meta_query()  : mixed
get_main_tax_query()  : mixed

Methods

is_table_on_page()

public static is_table_on_page() : mixed
Tags
deprecated
2.8

Replaced by Barn2\Plugin\WC_Product_Table\Util\Util::is_table_on_page

Return values
mixed

widget()

widget function.

public widget(array<string|int, mixed> $args, array<string|int, mixed> $instance) : mixed
Parameters
$args : array<string|int, mixed>
$instance : array<string|int, mixed>
Tags
see
WP_Widget
Return values
mixed

get_current_taxonomy()

Return the currently viewed taxonomy name.

protected get_current_taxonomy() : string
Return values
string

get_current_term_slug()

Return the currently viewed term slug.

protected get_current_term_slug() : int
Return values
int

get_filtered_product_count()

Count products after other filters have occurred by adjusting the main query.

protected get_filtered_product_count(int $rating) : int
Parameters
$rating : int
Return values
int

Search results