WCWP_Widget extends WC_Widget

Wholesale Store Abstract Widget

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

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).
get_current_page_url()  : string
Get current page URL with various filtering props supported by WC.
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

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_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
Tags
Return values
bool

Search results