GovLoop – Program User Query
Provides autosuggestion results for the Program Dashboard User Search.
// WP_User_Query arguments $args = array ( 'blog_id' => '1', 'search' => 'query', 'search_columns' => array( 'user_login', 'user_nicename', 'user_email' ), 'orderby' => 'display_name', 'count_total' => true, 'fields' => 'all_with_meta', ); // The User Query $user_query = new WP_User_Query( $args ); // The User Loop if ( ! empty( $user_query->results ) ) { foreach ( $user_query->results as $user ) { // do something } } else { // no users found }