Created
November 11, 2024 16:39
-
-
Save g-maclean/bc7d456fb1f091247d5c667532801760 to your computer and use it in GitHub Desktop.
PropertyHive - Change department label on search form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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