Created
August 13, 2025 07:23
-
-
Save propertyhive/41dddea57f228439d70d56da061c8674 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_apex27_xml_properties_due_import", 'exclude_office_from_apex27', 10, 2 ); | |
| function exclude_office_from_apex27($properties, $import_id) | |
| { | |
| $new_properties = array(); | |
| foreach ($properties as $property) | |
| { | |
| if ( isset($property->Branch) && (string)$property->Branch == 'C21 Estrie RE' ) | |
| { | |
| // do nothing, we don't want this property | |
| } | |
| else | |
| { | |
| $new_properties[] = $property; | |
| } | |
| } | |
| return $new_properties; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment