rcp_membership_can_access

Filters whether or not a specific membership grants access to a specific post.

Parameters:

  • $can_access (bool) - Whether or not this membership meets the restriction criteria.
  • $membership_id (int) - ID of the membership being checked.
  • $post_id (int) - ID of the post being checked.
  • $membership (RCP_Membership) - Membership object.