Price_Filter extends WCWP_Widget
Wholesale Store Price Filter
Tags
Table of Contents
- __construct() : mixed
- Constructor.
- body_class() : array<string|int, mixed>
- Adds the 'woocommerce' <body> class if the widgets are visible and pick up correct styles in certain themes (Genesis, Total, etc).
- widget() : mixed
- Output widget.
- get_current_page_url() : string
- Get current page URL with various filtering props supported by WC.
- get_filtered_price() : object
- Get filtered min price for current products.
- get_main_meta_query() : mixed
- Get the main meta query
- get_main_search_query_sql() : string
- Generates SQL clause for search string
- get_main_tax_query() : mixed
- Get the main taxonomy query
- has_product_table_on_page() : bool
- Determines whether a product table is on the page
- is_visible() : bool
- Determins whether the widget should display
Methods
__construct()
Constructor.
public
__construct() : mixed
Tags
Return values
mixed —body_class()
Adds the 'woocommerce' <body> class if the widgets are visible and pick up correct styles in certain themes (Genesis, Total, etc).
public
body_class(array<string|int, mixed> $classes) : array<string|int, mixed>
Parameters
- $classes : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —$classes
widget()
Output widget.
public
widget(array<string|int, mixed> $args, array<string|int, mixed> $instance) : mixed
Parameters
- $args : array<string|int, mixed>
-
Arguments.
- $instance : array<string|int, mixed>
-
Widget instance.
Tags
Return values
mixed —get_current_page_url()
Get current page URL with various filtering props supported by WC.
protected
get_current_page_url() : string
Tags
Return values
string —get_filtered_price()
Get filtered min price for current products.
protected
get_filtered_price() : object
Tags
Return values
object —get_main_meta_query()
Get the main meta query
protected
static get_main_meta_query() : mixed
Tags
Return values
mixed —get_main_search_query_sql()
Generates SQL clause for search string
protected
static get_main_search_query_sql() : string
Tags
Return values
string —get_main_tax_query()
Get the main taxonomy query
protected
static get_main_tax_query() : mixed
Tags
Return values
mixed —has_product_table_on_page()
Determines whether a product table is on the page
protected
static has_product_table_on_page() : bool
Tags
Return values
bool —is_visible()
Determins whether the widget should display
protected
is_visible() : bool