woocommerce_api_edit_order_data

woocommerce_api_edit_order_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_edit_order_data') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-orders.php line 517
    			if ( is_wp_error( $id ) ) {
    				return $id;
    			}
    
    			$data  = apply_filters( 'woocommerce_api_edit_order_data', $data, $id, $this );
    			$order = wc_get_order( $id );
    
    			if ( empty( $order ) ) {
    				throw new WC_API_Exception( 'woocommerce_api_invalid_order_id', __( 'Order ID is invalid', 'woocommerce' ), 400 );
    			}
    
    
  • /includes/legacy/api/v3/class-wc-api-orders.php line 555
    			if ( is_wp_error( $id ) ) {
    				return $id;
    			}
    
    			$data  = apply_filters( 'woocommerce_api_edit_order_data', $data, $id, $this );
    			$order = wc_get_order( $id );
    
    			if ( empty( $order ) ) {
    				throw new WC_API_Exception( 'woocommerce_api_invalid_order_id', __( 'Order ID is invalid', 'woocommerce' ), 400 );
    			}