Skip to content

Instantly share code, notes, and snippets.

@g-maclean
Created November 11, 2024 16:39
Show Gist options
  • Select an option

  • Save g-maclean/bc7d456fb1f091247d5c667532801760 to your computer and use it in GitHub Desktop.

Select an option

Save g-maclean/bc7d456fb1f091247d5c667532801760 to your computer and use it in GitHub Desktop.
PropertyHive - Change department label on search form
add_action('propertyhive_search_form_fields', 'change_search_form_labels', 1, 99);
function change_search_form_labels($form_controls){
if(isset($form_controls['department']['options']['rooms'])){
$form_controls['department']['options']['rooms'] = "Rooms To Let";
}
return $form_controls;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment