wp_insert_post

Insert or update a post.