Skip to content

Tareq Hasan

Category: Programming & Web

Posted on

Wildcard search using WP_User_Query()

You can use WP_User_Query() class to fetch users by various arguments. With its search parameter, you can search users by these columns 'ID', 'login', 'user_nicename', 'user_email', 'user_url'. Although you've to specify which columns you want to perform the search. When searching users with the search parameter, by default WordPress searches for direct match. It doesn't search … Continue reading Wildcard search using WP_User_Query()