I’m trying to add some additional order by filters on the shop pages. I’ve been looking through the code but can’t seem to find where to find the right files and functions. I found the function ‘class ROOOST_Widget_Sorting extends WPH_Widget’ where I can see the the woocommerce_catalog_order_by ;
$catalog_orderby_options = apply_filters( ‘woocommerce_catalog_orderby’, array(
‘menu_order’ => esc_html__( ‘Default’, ‘rooost’ ),
‘popularity’ => esc_html__( ‘Popularity’, ‘rooost’ ),
‘rating’ => esc_html__( ‘Average rating’, ‘rooost’ ),
‘date’ => esc_html__( ‘Newness’, ‘rooost’ ),
‘price’ => esc_html__( ‘Price: low to high’, ‘rooost’ ),
‘price-desc’ => esc_html__( ‘Price: high to low’, ‘rooost’ )
) );
However when I add new filters it isn’t being reflected on the site – please can you point me towards the right files/functions to implement the changes.
Thanks