Checks if a user has access to a given membership product.
(string) (required) The meta key of the product being checked.
(integer) (optional) The user ID to check. If no user ID is passed, it will check for the currently logged in user.
boolean (true|false) Returns true if the user has access, otherwise false.
Introduced in version 3.2.3
wpmem_user_has_access() is located in /includes/api-users.php.