wp_insert_post() sometimes takes awhile when creating pages programmatically. I'm guessing the function checks existing pages for collision on the slug? (Site has 700 pages). I'm looking to brainstorm ideas to speed it
wp_insert_post() with HTML tags using PHP - WordPress Development Stack Exchange
How to Use the wp_insert_post Function in WordPress
wp_insert_post not fired with current version of an Order on save · Issue #18007 · woocommerce/woocommerce · GitHub
How To Use The Wp_insert_post Function In WordPress To Insert Custom Posts • Scientyfic World
How to process a heavy request in WordPress - DEV Community