Created
February 5, 2026 10:18
-
-
Save propertyhive/3feb670e3b4c54b3280dbe1b20ae8808 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_export_thinkspain_property_data', 'add_new_build_to_ts_xml', 10, 3 ); | |
| function add_new_build_to_ts_xml( $property_xml, $post_id, $export_id ) | |
| { | |
| if ( has_term( 'New Build', 'property_label', $post_id ) && !isset( $property_xml->new_build ) ) | |
| { | |
| $property_xml->addChild( 'new_build', '1' ); | |
| } | |
| return $property_xml; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment