I'm using WP_User_Query to bring back a list of users. According to this article, I can focus the query on particular columns (I'm assuming in the wp_users table) using the search_columns param.
My query:
$args = array(
'search' => 'Rami',
'search_columns' => array( 'user_login', 'user_email', 'display_name' ),
);
$user_query = new WP_User_Query( $args );
My aim is to have my query look in the display_name column but that doesn't seem to be working. Interestingly, display_name isn't a mentioned column in the article example but it is definitely a column in the wp_users table.
How can I search the display_name column when using WP_User_Query?