Have you tried changing Line 83? Change 'post_type' => 'post', to 'post_type' => 'YOURCUSTOMCPT',
See Codex article for wp_insert_post
for reference – codex.wordpress.org/Function_Reference/wp_insert_post
Have you tried changing Line 83? Change 'post_type' => 'post', to 'post_type' => 'YOURCUSTOMCPT',
See Codex article for wp_insert_post
for reference – codex.wordpress.org/Function_Reference/wp_insert_post