woocommerce_api_order_response

woocommerce_api_order_response

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_api_order_response') is found 3 times:

  • /includes/legacy/api/v1/class-wc-api-orders.php line 233
    				'amount' => wc_format_decimal( $coupon_item->get_discount(), 2 ),
    			);
    		}
    
    		return array( 'order' => apply_filters( 'woocommerce_api_order_response', $order_data, $order, $fields, $this->server ) );
    	}
    
    	/**
    	 * Get the total number of orders
    	 *
    	 * @since 2.1
    
  • /includes/legacy/api/v2/class-wc-api-orders.php line 282
    				'amount' => wc_format_decimal( $coupon_item->get_discount(), $dp ),
    			);
    		}
    
    		return array( 'order' => apply_filters( 'woocommerce_api_order_response', $order_data, $order, $fields, $this->server ) );
    	}
    
    	/**
    	 * Get the total number of orders
    	 *
    	 * @since 2.4
    
  • /includes/legacy/api/v3/class-wc-api-orders.php line 319
     
    			$order_data['coupon_lines'][] = $coupon_line;
    		}
    
    		return array( 'order' => apply_filters( 'woocommerce_api_order_response', $order_data, $order, $fields, $this->server ) );
    	}
    
    	/**
    	 * Get the total number of orders
    	 *
    	 * @since 2.4
    

See this hook used in plugins: