woocommerce_json_search_found_customers

The WooCommerce woocommerce json search found customers hook.

Description

apply_filters( 'woocommerce_json_search_found_customers', (unknown) $found_customers ); 

Parameters (1)

0. $found_customers (unknown)
The found customers.

Usage

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

Defined (1)

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

/includes/class-wc-ajax.php  
  1. wp_send_json( apply_filters( 'woocommerce_json_search_found_customers', $found_customers ) );