Checks if a user has a given role or not.
(mixed) (required) The role or array of roles being checked.
(integer) (optional) The user ID to check. If no user ID is given, the current user is checked. (Default: false)
boolean (true|false) If the user has the role checked, true is returned, otherwise false.
Introduced in version 3.1.1
Can check array of roles or single string in 3.1.6
wpmem_user_has_role() is located in /inc/api.php.