I have a shortcode that restricts content in wordpress. which first hides content and shows the message and after buying product it shows the sample restricted text.
[edd_restrict id="any"]sample restricted text [/edd_restrict]
This just work for sample TEXT. I converted it to PHP like this :
<?php echo do_shortcode( '[edd_restrict id="any"]<?php include(TEMPLATEPATH."/post-ads.php");?>[/edd_restrict]' );?>
But in this way it shows a message to buy a product but after buying product it can not run the PHP inside I mean <?php include(TEMPLATEPATH."/post-ads.php");?>
and shows nothing.
is there any way to run this PHP into <?php echo do_shortcode ?