Last active
September 30, 2025 20:03
-
-
Save propertyhive/659c39b3088fbb19fd30d2ef51474f91 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( "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