woocommerce_payment_complete

woocommerce_payment_complete

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_payment_complete') is found 1 times:

  • /includes/class-wc-order.php line 153
    				}
    				$this->set_status( apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? 'processing' : 'completed', $this->get_id(), $this ) );
    				$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.
    

See this hook used in plugins: