Are hooks called when creating an order from the backend, and not checkout? [closed]
I am trying to add order meta to each new order created. I created a staging site, added the plugin, and created a test order from the backend. However, I can’t get any hook I use to work. The hooks I have tried are woocommerce_checkout_create_order
and woocommerce_checkout_update_order_meta
.
I tested to make sure the plugin itself is working correctly by adding a log file, which is working. I added a function with add action to those hooks, with the content simply logging a single line to a file, which did not work.
Leave an answer