woocommerce_api_customer_orders_response filter-hookWC 1.0

Usage

add_filter( 'woocommerce_api_customer_orders_response', 'wp_kama_woocommerce_api_customer_orders_response_filter', 10, 5 );

/**
 * Function for `woocommerce_api_customer_orders_response` filter-hook.
 * 
 * @param  $orders    
 * @param  $id        
 * @param  $fields    
 * @param  $order_ids 
 * @param  $server    
 *
 * @return 
 */
function wp_kama_woocommerce_api_customer_orders_response_filter( $orders, $id, $fields, $order_ids, $server ){

	// filter...
	return $orders;
}
$orders
-
$id
-
$fields
-
$order_ids
-
$server
-

Where the hook is called

WC_API_Customers::get_customer_orders()
woocommerce_api_customer_orders_response
woocommerce/includes/legacy/api/v1/class-wc-api-customers.php 278
return array( 'orders' => apply_filters( 'woocommerce_api_customer_orders_response', $orders, $id, $fields, $order_ids, $this->server ) );
woocommerce/includes/legacy/api/v2/class-wc-api-customers.php 501
return array( 'orders' => apply_filters( 'woocommerce_api_customer_orders_response', $orders, $id, $fields, $order_ids, $this->server ) );

Where the hook is used in WooCommerce

Usage not found.