Created
April 21, 2026 20:17
-
-
Save propertyhive/13bf3b8176f67a7a684acdb6f11a884e to your computer and use it in GitHub Desktop.
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_filter( 'propertyhive_search_form_action', 'set_search_form_action' ); | |
| function set_search_form_action($action) | |
| { | |
| if ( isset($_GET['department']) && $_GET['department'] == 'residential-lettings' ) | |
| { | |
| return '/lettings/'; | |
| } | |
| return '/sales/'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment