woof_custom_filter_items_order
钩子 woof_custom_filter_items_order 允许更改筛选器元素的顺序,传递一个过滤器键的数组(如果您在“结构”选项卡中单击其附加选项,则可以找到筛选器部分键)
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;
});