Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created August 13, 2025 07:23
Show Gist options
  • Save propertyhive/41dddea57f228439d70d56da061c8674 to your computer and use it in GitHub Desktop.
Save propertyhive/41dddea57f228439d70d56da061c8674 to your computer and use it in GitHub Desktop.
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