Created
April 20, 2026 20:25
-
-
Save propertyhive/834f318dd4322cbfbfa408cd77affcfd 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
| $enquiry_form_output_already = false; | |
| add_filter( 'propertyhive_viewing_request_show_fields', 'hide_show_form_fields' ); | |
| function hide_show_form_fields($show) | |
| { | |
| global $enquiry_form_output_already; | |
| if ( $enquiry_form_output_already === false ) | |
| { | |
| // first one. Show fields | |
| $enquiry_form_output_already = true; | |
| return true; | |
| } | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment