Create custom post type on successful woocommerce order [closed] June 4, 2022 by Tarik Billa I managed to figure it out by placing the wp_insert_post function in the same function that saves the order meta data