woocommerce_payment_complete, $this->get_id(
woocommerce_payment_complete, $this->get_id(
Appears in: woocommerce.11.0.0
Hook Type: action
Displaying hooks found in version: woocommerce.11.0.0do_action('woocommerce_payment_complete, $this->get_id(') is found 1 times:
- /includes/class-wc-order.php line 186
$this->set_status( $next_status, false ); $this->add_order_note( $payment_complete_note, false, false, array( 'note_group' => OrderNoteGroup::PAYMENT ) ); $this->save(); do_action( 'woocommerce_payment_complete', $this->get_id(), $transaction_id ); } else { do_action( 'woocommerce_payment_complete_order_status_' . $this->get_status(), $this->get_id(), $transaction_id ); } } catch ( Exception $e ) { /** * If there was an error completing the payment, log to a file and add an order note so the admin can take action.