I would like to know if there is any way to execute a function when creating an order in WooCommerce. I have seen the Code Snippets module but I don't know what the function that creates the order is called or how to fire it.
The idea is that when a client creates a new order, a POST request is made to my server to send a notification to the user's mobile.
I appreciate any help
In the end I solved it with the following hook:
Using the WordPress code snippets plugin.