woocommerce_pre_payment_complete
Usage
add_action( 'woocommerce_pre_payment_complete', 'wp_kama_woocommerce_pre_payment_complete_action', 10, 2 ); /** * Function for `woocommerce_pre_payment_complete` action-hook. * * @param $id * @param $transaction_id * * @return void */ function wp_kama_woocommerce_pre_payment_complete_action( $id, $transaction_id ){ // action... }
- $id
- -
- $transaction_id
- -
Where the hook is called
woocommerce_pre_payment_complete
woocommerce/includes/class-wc-order.php 137
do_action( 'woocommerce_pre_payment_complete', $this->get_id(), $transaction_id );