Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Last active September 30, 2025 20:03
Show Gist options
  • Save propertyhive/659c39b3088fbb19fd30d2ef51474f91 to your computer and use it in GitHub Desktop.
Save propertyhive/659c39b3088fbb19fd30d2ef51474f91 to your computer and use it in GitHub Desktop.
add_filter( "houzez_property_feed_properties_due_import_kyero", 'new_build_only', 10, 2 );
add_filter( "houzez_property_feed_properties_due_import_xml", 'new_build_only', 10, 2 );
function new_build_only( $properties, $import_id )
{
$new_properties = array();
foreach ( $properties as $property )
{
if (isset($property->new_build) && (string)$property->new_build == '1')
{
$new_properties[] = $property;
}
}
return $new_properties;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment