restrict php with edd
-
hi
this is the way edd restrict works in page or post :
[edd_restrict id="any"]sample restricted text [/edd_restrict]
but i want to use this in a template php and run antoher php like this :
<?php echo do_shortcode( '[edd_restrict id="any"]<?php include(TEMPLATEPATH."/post-ads.php");?>[/edd_restrict]' );?>
this way it hide the postads.php from non buyers but after buying a product it can not run and show the php inside the postads.php
how can i do that?
why there is no php function to use edd restrict in template?
paid membership pro have a php code for restriction bud edd dont !
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘restrict php with edd’ is closed to new replies.