HUSKY - WooCommerce Products Filter Professional


woof_custom_filter_items_order

Hook woof_custom_filter_items_order gives ability to change the order of filter elements, passes an array of filter keys (you can find filter section key if to click on additional options of it in tab Structure)

Example:

add_filter('woof_custom_filter_items_order', function($order){    
    //your code here
    $order=['by_price','pa_color', 'by_text', 'product_cat', 'pa_size'];    
    return $order;
});

 


Troubles? Ask for Support!