Simple method to generate posts from files

One way is to have the posts in a Json format, and use wp_insert_post(); to automatically create the posts.

documentation: https://developer.wordpress.org/reference/functions/wp_insert_post/

error code: 523