PHP 클래스 WC_Widget_Layered_Nav

상속: extends WP_Widget
파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Constructor.
form ( array $instance ) Outputs the settings update form.
init_settings ( ) Init settings after post types are registered.
update ( array $new_instance, array $old_instance ) : array Updates a particular instance of a widget.
widget ( array $args, array $instance ) Output widget.

보호된 메소드들

메소드 설명
get_current_taxonomy ( ) : string Return the currently viewed taxonomy name.
get_current_term_id ( ) : integer Return the currently viewed term ID.
get_current_term_slug ( ) : integer Return the currently viewed term slug.
get_filtered_term_product_counts ( array $term_ids, string $taxonomy, string $query_type ) : array Count products within certain terms, taking the main WP query into consideration.
get_page_base_url ( $taxonomy ) : string Get current page URL for layered nav items.
layered_nav_dropdown ( array $terms, string $taxonomy, string $query_type ) : boolean Show dropdown layered nav.
layered_nav_list ( array $terms, string $taxonomy, string $query_type ) : boolean Show list based layered nav.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

form() 공개 메소드

Outputs the settings update form.
public form ( array $instance )
$instance array

get_current_taxonomy() 보호된 메소드

Return the currently viewed taxonomy name.
protected get_current_taxonomy ( ) : string
리턴 string

get_current_term_id() 보호된 메소드

Return the currently viewed term ID.
protected get_current_term_id ( ) : integer
리턴 integer

get_current_term_slug() 보호된 메소드

Return the currently viewed term slug.
protected get_current_term_slug ( ) : integer
리턴 integer

get_filtered_term_product_counts() 보호된 메소드

Count products within certain terms, taking the main WP query into consideration.
protected get_filtered_term_product_counts ( array $term_ids, string $taxonomy, string $query_type ) : array
$term_ids array
$taxonomy string
$query_type string
리턴 array

get_page_base_url() 보호된 메소드

Get current page URL for layered nav items.
protected get_page_base_url ( $taxonomy ) : string
리턴 string

init_settings() 공개 메소드

Init settings after post types are registered.
public init_settings ( )

layered_nav_dropdown() 보호된 메소드

Show dropdown layered nav.
protected layered_nav_dropdown ( array $terms, string $taxonomy, string $query_type ) : boolean
$terms array
$taxonomy string
$query_type string
리턴 boolean Will nav display?

layered_nav_list() 보호된 메소드

Show list based layered nav.
protected layered_nav_list ( array $terms, string $taxonomy, string $query_type ) : boolean
$terms array
$taxonomy string
$query_type string
리턴 boolean Will nav display?

update() 공개 메소드

Updates a particular instance of a widget.
public update ( array $new_instance, array $old_instance ) : array
$new_instance array
$old_instance array
리턴 array

widget() 공개 메소드

Output widget.
또한 보기: WP_Widget
public widget ( array $args, array $instance )
$args array
$instance array