wpmem_user_is_current()

Description

Checks if a user’s membership is current. Similar to wpmem_user_has_access(), but specifically checks the expiration date for a specified membership (must be an expiration membership).

Parameters

$membership
(string)(required) The meta key of the membership to check.

$user_id
(integer)(optional) The user ID. Checks the currently logged in user if false.

Changelog

  • Introduced in extension version 3.4.0

Source

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