WP_User_Query now accepts fields options in WordPress 6.0 

Prior to the WordPress 6.0 release the function WP_User_Query would only accept ID and all_with_meta/all in the fields parameter. The change You can now pass any of these options in the field parameter and get the associated values back ‘ID’ ‘display_name’ ‘user_login’ ‘user_pass’ ‘user_nicename’ ‘user_email’ ‘user_url’ ‘user_registered’ ‘user_activation_key” ‘user_status’ and for a multi site also … Continue reading WP_User_Query now accepts fields options in WordPress 6.0