Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created February 5, 2026 10:18
Show Gist options
  • Select an option

  • Save propertyhive/3feb670e3b4c54b3280dbe1b20ae8808 to your computer and use it in GitHub Desktop.

Select an option

Save propertyhive/3feb670e3b4c54b3280dbe1b20ae8808 to your computer and use it in GitHub Desktop.
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