I have the following code to insert posts in wp_posts table using wp_insert_post function:
I'm using Polylang for this CPT called "Property", posts must be set in two languages: Spanish and English. The insert part is working like a charm but I don't know how to deal with the update process (wp_update_post).