Used to check whether a user has the standard user permission or not.
Location
users/helpers/permissions.php
Parameters
#
Parameter
Data Type
Required
Description
1
$user_id
string
Yes
which is the ID of the user being checked
Returns
Data Type
Description of Returned Data
bool
If the user has only one permission and it is the standard user permission, the function returns true, indicating that the user is a standard user. If the user has more than one permission or the permission is not the standard user permission, the function returns false.
Further Documentation:
Example usage:
$user_id = 123;
if (isStandardUser($user_id)) {
// User is a standard user
} else {
// User is not a standard user
}