So i'm working with WordPress and WooCommerce for a website and i have a task that i don't know how to solve. When i create a WooCommerce product i need another landing page for that product to be created automatically where i can see details of the product and similar products.
I was trying to use wp_insert_post()
but i can't figure it out how to add the page after adding a product
Is there a way i can do that or is there a plugin that gives you the function to do that?
I hope i was clear in the question.
Thank you in advance