wpmem_remove_user_product()

Description

Removes user access for a given product.

Parameters

$product
(string) (required) The meta key of the product to remove access from.

$user_id
(integer) (required) The user ID to remove access from. If no user ID is passed, it will remove the product for the currently logged in user.

Return Value

boolean (true|false) Returns true if removing the product was successful.

Examples

Changelog

Introduced in version 3.2.3

Source

wpmem_remove_user_product() is located in /includes/api/api-users.php.