Pat Eason's ugly mug

Pat Eason

Frontend Developer

sql

Get Users by display_name using $wpdb


If you’ve ever tried to retrieve users by a display name, as I have, and tried to use get_users you’ve inevitably ended up grabbing all the users and then looping through them after the fact. That takes too long when we just want the users who’s display names match what we’re looking for. For that, […]