PHP Class WC_Widget_Rating_Filter

Author: WooThemes
Inheritance: extends WC_Widget
显示文件 Open project: woocommerce/woocommerce

Public Methods

Method Description
__construct ( ) Constructor.
widget ( array $args, array $instance ) widget function.

Protected Methods

Method Description
get_filtered_product_count ( integer $rating ) : integer Count products after other filters have occured by adjusting the main query.
get_page_base_url ( ) : string Get current page URL for layered nav items.

Method Details

__construct() public method

Constructor.
public __construct ( )

get_filtered_product_count() protected method

Count products after other filters have occured by adjusting the main query.
protected get_filtered_product_count ( integer $rating ) : integer
$rating integer
return integer

get_page_base_url() protected method

Get current page URL for layered nav items.
protected get_page_base_url ( ) : string
return string

widget() public method

widget function.
See also: WP_Widget
public widget ( array $args, array $instance )
$args array
$instance array