This filter can be used to override the output from the pmpro_hasMembershipLevel() function.  It passes the boolean true or false, user ID, and the array of required levels for that post passed to pmpro_hasMembershipLevel().


apply_filters("pmpro_has_membership_level", bool $return, int $user_id, array $levels);

Parameters

$return
bool
$user_id
int
$levels
array

Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/functions.php

View in Source Code