You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Weirdly enough, the nickname is only available when you retrieve users via get_users(), and not when you retrieve them via get_user_by()... See wp-cli/wp-cli#5600
@Hlsgs Yes, indeed. I did some work in solving this, but it turns around it is mostly a bug in get_users(). I then tried to use WP_User_Query across the board for all WP-CLI user queries, but that just turned up with different bugs of its own.
This needs more careful investigation in how best to solve.
@Hlsgs Yes, indeed. I did some work in solving this, but it turns around it is mostly a bug in get_users(). I then tried to use WP_User_Query across the board for all WP-CLI user queries, but that just turned up with different bugs of its own. This needs more careful investigation in how best to solve.
Activity
johnbillion commentedon Aug 10, 2020
It looks like this affects other fields too, such as
--user_nicenameand--user_url. See #301 .schlessera commentedon Jan 13, 2022
Weirdly enough, the
nicknameis only available when you retrieve users viaget_users(), and not when you retrieve them viaget_user_by()... See wp-cli/wp-cli#5600Hlsgs commentedon Jan 26, 2022
Confirming still present in wp cli v2.6.0
schlessera commentedon Jan 26, 2022
@Hlsgs Yes, indeed. I did some work in solving this, but it turns around it is mostly a bug in
get_users(). I then tried to useWP_User_Queryacross the board for all WP-CLI user queries, but that just turned up with different bugs of its own.This needs more careful investigation in how best to solve.
Hlsgs commentedon Jan 26, 2022
Got it! Thank you for the lowdown.