Extend WP_User_Query or WP_User to return all custom fields?
In cases like this its better off (IHMO) to simple use a custom query using the $wpdb class ex: <?php global $wpdb; //first get a list of all meta keys $keys = $wpdb->get_col(“SELECT distinct meta_key FROM $wpdb->usermeta”); //then prepare the meta keys query as fields which we’ll join to the user table fields $meta_columns=””; foreach … Read more