I would like to remove [price↑] and [price↓] when reordering listings. I want to hide them. Is that possible?
Please try this PHP snippet
add_filter(
'hivepress/v1/models/listing/attributes',
function ($attributes){
if(isset($attributes['price'])){
$attributes['price']['sortable'] = false;
}
return $attributes;
},
1000
);
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.