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