Hello,
I would like to completely hide the filter by price in the filter for entries & co. Is there a snippet for this?
Have found in the forum here to date unfortunately none…
Thanks in advance!
Hello,
I would like to completely hide the filter by price in the filter for entries & co. Is there a snippet for this?
Have found in the forum here to date unfortunately none…
Thanks in advance!
Solution:
add_filter(
'hivepress/v1/models/listing/attributes',
function( $attributes ) {
if ( isset( $attributes['price'] ) ) {
$attributes['price']['filterable'] = false;
}
return $attributes;
},
1000
);
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.