But the widget you are using for this purpose is Basel Woocommerce Sort By. Isn’t this a custom-made widget by your team?
The php code below works in another theme I use but not in yours:
function my_woocommerce_catalog_orderby( $orderby ) {
unset($orderby["popularity"]); // Remove "Sort by popularity"
unset($orderby["rating"]); // Remove "Sort by average rating"
unset($orderby["date"]); // Remove "Sort by newness"
return $orderby;
}
add_filter( "woocommerce_catalog_orderby", "my_woocommerce_catalog_orderby", 20 );
Can’t you at least tell me what function name should I use?