Skip to content

Instantly share code, notes, and snippets.

@g-maclean
Created September 3, 2025 14:16
Show Gist options
  • Save g-maclean/2cbcb447cc4a52153a7e19a262e4f76b to your computer and use it in GitHub Desktop.
Save g-maclean/2cbcb447cc4a52153a7e19a262e4f76b to your computer and use it in GitHub Desktop.
Property Hive - Kyero - import plot size
add_action( "propertyhive_property_imported_kyero_xml", 'import_plot_size', 10, 2 );
function import_plot_size($post_id, $property)
{
if ( isset($property->surface_area) && isset($property->surface_area->plot) && !empty($property->surface_area->plot) ) {
update_post_meta( $post_id, '_plot_size', $property->surface_area->plot );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment