Created
September 3, 2025 14:16
-
-
Save g-maclean/2cbcb447cc4a52153a7e19a262e4f76b to your computer and use it in GitHub Desktop.
Property Hive - Kyero - import plot size
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_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