Hello,
I’m using Geolocation extension and i need to know how could I change the order of search fields (i.e. Location)
Hello,
I’m using Geolocation extension and i need to know how could I change the order of search fields (i.e. Location)
Sorry for the delay. Please try this PHP snippet
add_filter(
'hivepress/v1/forms/listing_search',
function($form_args, $form){
if(isset($form_args['fields']['location'])){
$form_args['fields']['location']['_order'] = 1;
}
return $form_args;
},
1000,
2
);
It worked fine!!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.