is_filtered()
Is_filtered - Returns true when filtering products using layered nav or price sliders.
Hooks from the function
Return
true|false
.
Usage
is_filtered();
is_filtered() is filtered code WC 9.4.2
function is_filtered() { return apply_filters( 'woocommerce_is_filtered', ( count( WC_Query::get_layered_nav_chosen_attributes() ) > 0 || isset( $_GET['max_price'] ) || isset( $_GET['min_price'] ) || isset( $_GET['rating_filter'] ) ) ); // WPCS: CSRF ok. }