Filters by a user attribute key handle. Additionally, the UserList class has a magic method which will allow all user attribute key sorting based on handle
I want to search the users with the magic method of the user_list model.
This is my code
[code]
$userList->filterByAddress('%'.$keywords.'%', 'LIKE');
$userList->filterByZipcode('%'.$keywords.'%', 'LIKE');
$userList->filterByCity('%'.$keywords.'%…
I tried setting up a checkbox as a user attribute and then filtering on that, like:
[code]$userList->filterByExcludeFromDirectory(1, '!=');[/code]
Oddly, that would only filter out the super user, and no others...
So I came up with this kind of jan…
Sign In?
You must have a user account and be signed to perform this action.