Home › Forums › Basel support forum › Remove some elements from filter "Sort by" › Reply To: Remove some elements from filter "Sort by"
December 10, 2017 at 3:08 am
#28109
svaldesm
Participant
Also if you would like to set one as default, this works:
// Set date as default order
function default_orderby() {
return('date');
}
add_filter( "woocommerce_default_catalog_orderby", "default_orderby", 20 );