woocommerce_found_customer_details

The WooCommerce POS woocommerce found customer details hook.

Description

apply_filters( 'woocommerce_found_customer_details', (unknown) $customer_data, (unknown) $user_id, (unknown) $type_to_load ); 

Parameters (3)

0. $customer_data (unknown)
The customer data.
1. $user_id (unknown)
The user id.
2. $type_to_load (unknown)
The type to load.

Usage

To run the hook, copy the example below.
  1. $customer_data = apply_filters( 'woocommerce_found_customer_details', $customer_data, $user_id, $type_to_load ); 
  2.  
  3. if ( !empty( $customer_data ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_found_customer_details callback 
  2. function filter_woocommerce_found_customer_details( $customer_data, $user_id, $type_to_load ) { 
  3. // make filter magic happen here... 
  4. return $customer_data
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_found_customer_details', 'filter_woocommerce_found_customer_details', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_found_customer_details', 'filter_woocommerce_found_customer_details', 10, 3 ); 

Defined (2)

The filter is defined in the following location(s).

/includes/apiv2/class-wc-pos-orders.php  
  1. $customer_data = apply_filters( 'woocommerce_found_customer_details', $customer_data, $user_id, $type_to_load ); 
/includes/api/class-wc-pos-orders.php  
  1. $customer_data = apply_filters( 'woocommerce_found_customer_details', $customer_data, $user_id, $type_to_load );