wp_insert_post() post_author and return post_id are not working
Updating answer for people who might have same issue as me. I wrapped up front end form and the code to execute the date from the form into functions and it started to work. I also added additional functions for loading CSS/JS files only on the page where plugin is being used. Along with error … Read more