Generating and showing custom item meta on status change
-
I’m using the
woocommerce_order_status_changed
hook to add a generated custom item meta value to an item in the relevant order when the status of the order is changed to “completed”.I then want to show that custom meta in the email which is sent out (emails/customer-completed-order.php). However, it would appear that the hook I mention above runs after the email is sent.
I’ve tried modifying the priority of the hook call, but this makes no difference.
Does anyone know of an earlier hook which would indicate that the status has been changed, which is triggered before the email is dispatched?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Generating and showing custom item meta on status change’ is closed to new replies.