woocommerce_api_edit_order

woocommerce_api_edit_order

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_api_edit_order') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-orders.php line 628
    			}
    
    			wc_delete_shop_order_transients( $order );
    
    			do_action( 'woocommerce_api_edit_order', $order->get_id(), $data, $this );
    			do_action( 'woocommerce_update_order', $order->get_id() );
    
    			return $this->get_order( $id );
    
    		} catch ( WC_Data_Exception $e ) {
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => 400 ) );
    
  • /includes/legacy/api/v3/class-wc-api-orders.php line 665
    			}
    
    			wc_delete_shop_order_transients( $order );
    
    			do_action( 'woocommerce_api_edit_order', $order->get_id(), $data, $this );
    			do_action( 'woocommerce_update_order', $order->get_id() );
    
    			return $this->get_order( $id );
    		} catch ( WC_Data_Exception $e ) {
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => 400 ) );
    		} catch ( WC_API_Exception $e ) {