woocommerce_payment_complete_order_status_(status) хук-событиеWC 1.0

Использование

add_action( 'woocommerce_payment_complete_order_status_(status)', 'wp_kama_woocommerce_payment_complete_order_status_action', 10, 2 );

/**
 * Function for `woocommerce_payment_complete_order_status_(status)` action-hook.
 * 
 * @param  $id             
 * @param  $transaction_id 
 *
 * @return void
 */
function wp_kama_woocommerce_payment_complete_order_status_action( $id, $transaction_id ){

	// action...
}
$id
-
$transaction_id
-

Где вызывается хук

WC_Order::payment_complete()
woocommerce_payment_complete_order_status_(status)
woocommerce/includes/class-wc-order.php 147
do_action( 'woocommerce_payment_complete_order_status_' . $this->get_status(), $this->get_id(), $transaction_id );

Где используется хук в WooCommerce

Использование не найдено.