Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created February 20, 2023 20:08
Show Gist options
  • Select an option

  • Save hivepress/e840962b46d2b82b3a4340435773f483 to your computer and use it in GitHub Desktop.

Select an option

Save hivepress/e840962b46d2b82b3a4340435773f483 to your computer and use it in GitHub Desktop.
Remove the price range search filter for listings #hivepress #marketplace
<?php
add_filter(
'hivepress/v1/forms/listing_filter',
function( $form ) {
unset($form['fields']['price']);
return $form;
},
1000
);
@unitehearts
Copy link

What if I want to unset the price for a particular category only ? Please suggest a code snippet for this

@unitehearts
Copy link

And in case we wish to have a different Label | Description for different Categories for the Primary Fields like Price | Title | Description in the Search Form & Filters, how can this be done ?

@hivepress
Copy link
Author

Sorry, this would require further customizations - if you have premium support with us please post a new topic here https://community.hivepress.io/ We can provide general guidance for developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment