Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created November 15, 2022 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save propertyhive/b0e4a11e35df3cc0b549808007fe5be2 to your computer and use it in GitHub Desktop.
Save propertyhive/b0e4a11e35df3cc0b549808007fe5be2 to your computer and use it in GitHub Desktop.
add_action( "propertyhive_property_imported_street_json", 'custom_street_hook', 10, 2 );
function custom_street_hook($post_id, $property)
{
// do stuff here. e.g:
// update_post_meta( $post_id, '_my_custom_field', $property['street_field'] );
// var_dump($property);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment