Show or Hide Video Based on MemberPress Rule

1
2
3
4
5
6
7
8
9
10
11
<?php
	if(class_exists('MeprRule')) 
		{
		if(MeprRule::is_protected_by_rule(123))
			{//Show $Teaser
			}
		else
			{//Show protected $video
			}
		}
?>