woocommerce_api_customer_downloads_response filter-hookWC 1.0

Usage

add_filter( 'woocommerce_api_customer_downloads_response', 'wp_kama_woocommerce_api_customer_downloads_response_filter', 10, 4 );

/**
 * Function for `woocommerce_api_customer_downloads_response` filter-hook.
 * 
 * @param  $downloads 
 * @param  $id        
 * @param  $fields    
 * @param  $server    
 *
 * @return 
 */
function wp_kama_woocommerce_api_customer_downloads_response_filter( $downloads, $id, $fields, $server ){

	// filter...
	return $downloads;
}
$downloads
-
$id
-
$fields
-
$server
-

Where the hook is called

WC_API_Customers::get_customer_downloads()
woocommerce_api_customer_downloads_response
woocommerce/includes/legacy/api/v3/class-wc-api-customers.php 521
return array( 'downloads' => apply_filters( 'woocommerce_api_customer_downloads_response', $downloads, $id, $fields, $this->server ) );
woocommerce/includes/legacy/api/v2/class-wc-api-customers.php 536
return array( 'downloads' => apply_filters( 'woocommerce_api_customer_downloads_response', $downloads, $id, $fields, $this->server ) );

Where the hook is used in WooCommerce

Usage not found.