edd_ajax_found_users

The Easy Digital Downloads edd ajax found users hook.

Description

apply_filters( 'edd_ajax_found_users', (unknown) $get_users, (unknown) $search_query ); 

Parameters (2)

0. $get_users (unknown) => get_users( $get_users_args )
The get users.
1. $search_query (unknown)
The search query.

Usage

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

Defined (1)

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

/includes/ajax-functions.php  
  1. $found_users = apply_filters( 'edd_ajax_found_users', get_users( $get_users_args ), $search_query );