WordPress at Your Fingertips
action is not described

woocommerce_order_payment_status_changed action-hook . WC 3.9.0

Fires when the order progresses from a pending payment status to a paid one.

Usage

add_action( 'woocommerce_order_payment_status_changed', 'action_function_name_7411', 10, 2 );
function action_function_name_7411( $id, $that ){
	// action...
}
$id(int)
Order ID
$that(WC_Order)
Order object

Changelog

Since 3.9.0 Introduced.

Where the hook is called

WC_Order::status_transition()
woocommerce_order_payment_status_changed
woocommerce/includes/class-wc-order.php 388
do_action( 'woocommerce_order_payment_status_changed', $this->get_id(), $this );

Where in WP core the hook is used WooCommerce

Usage not found.