Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
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. |
protected get_current_taxonomy ( ) : string | ||
Résultat | string |
protected get_current_term_id ( ) : integer | ||
Résultat | integer |
protected get_current_term_slug ( ) : integer | ||
Résultat | integer |
protected get_page_base_url ( $taxonomy ) : string | ||
Résultat | string |
public init_settings ( ) |