woocommerce_payment_complete_order_status_

woocommerce_payment_complete_order_status_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_payment_complete_order_status_') is found 1 times:

  • /includes/class-wc-order.php line 174
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
            $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.
         */
        $logger = wc_get_logger();