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.

, , dveth 3 years 2020-03-24T12:51:11-05:00 0 Answers 129 views 0

Leave an answer