woocommerce_api_customer_response filter-hookWC 1.0

Usage

add_filter( 'woocommerce_api_customer_response', 'wp_kama_woocommerce_api_customer_response_filter', 10, 4 );

/**
 * Function for `woocommerce_api_customer_response` filter-hook.
 * 
 * @param  $customer_data 
 * @param  $customer      
 * @param  $fields        
 * @param  $server        
 *
 * @return 
 */
function wp_kama_woocommerce_api_customer_response_filter( $customer_data, $customer, $fields, $server ){

	// filter...
	return $customer_data;
}
$customer_data
-
$customer
-
$fields
-
$server
-

Where the hook is called

WC_API_Customers::get_customer()
woocommerce_api_customer_response
woocommerce/includes/legacy/api/v1/class-wc-api-customers.php 171
return array( 'customer' => apply_filters( 'woocommerce_api_customer_response', $customer_data, $customer, $fields, $this->server ) );
woocommerce/includes/legacy/api/v3/class-wc-api-customers.php 190
return array( 'customer' => apply_filters( 'woocommerce_api_customer_response', $customer_data, $customer, $fields, $this->server ) );
woocommerce/includes/legacy/api/v2/class-wc-api-customers.php 189
return array( 'customer' => apply_filters( 'woocommerce_api_customer_response', $customer_data, $customer, $fields, $this->server ) );

Where the hook is used in WooCommerce

Usage not found.