saoyr5
saoyr5

Reputation: 111

Where to hook into woocommerce after payment is completed but before its verified

I have a client who is interested in creating some CPTs for each item in their customers order. I have found the hook woocommerce_order_status_completed() but some customers will be paying by check, and that hook doesn't fire until after the order is verified under Woocommerce>Orders.

My client would like the CPTs to be created before the check payment is verified. I've been searching woo's hook reference over and over and can't quite find what I'm looking for.

Any help is appreciated.

Upvotes: 0

Views: 922

Answers (1)

helgatheviking
helgatheviking

Reputation: 26319

Try the woocommerce_checkout_order_processed hook.

Upvotes: 1

Related Questions