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