Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created February 20, 2023 20:08
Show Gist options
  • Save hivepress/e840962b46d2b82b3a4340435773f483 to your computer and use it in GitHub Desktop.
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
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment