Get, find or save users ($users API variable as a function)
This function behaves the same as the $users
API variable, though does support
an optional shortcut argument for getting a single user or finding multiple users.
Example
// Get a single user (regular and shortcut syntax)
$u = users()->get('karen');
$u = users('karen');
// Find multiple users (regular and shortcut syntax)
$us = users()->find('roles.name=editor');
$us = users('roles.name=editor');
Usage
// basic usage
$users = users();
// usage with all arguments
$users = users($selector = '');
Functions methods and properties
API reference based on ProcessWire core version 3.0.236