Last active
August 29, 2015 14:06
-
-
Save strangerstudios/93d651b664e06d554eaf to your computer and use it in GitHub Desktop.
Enable iflychat for Paid Memberships Pro members only.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_iflychat_check_access_filter($access) | |
{ | |
if(!is_admin() && function_exists("pmpro_hasMembershipLevel") && !pmpro_hasMembershipLevel()) | |
$access = false; | |
return $access; | |
} | |
add_filter('iflychat_check_access_filter', 'my_iflychat_check_access_filter'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi strangerstudios, can you tell me in which file I put this code ?
Thank's
mika