• Resolved hamoon

    (@graphirancom)


    hi.
    i want to restrict Custom fields with edd + edd all access
    how can i restrict a php code in my template with edd? there is just shortcodes for pages not php codes for template.
    is there any option i can restrict PHP codes in template which shows in Custom fields ? i dont want use new products i just want to restric part of my POSTS in wordpress which is a php code in my template

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hamoon

    (@graphirancom)

    there is a code for another plugin which i dont want to use … like this

    `<?php
    if(pmpro_hasMembershipLevel(’12’))
    {
    ?>
    //Place your HTML or PHP code here if the user is in the required membership level

    <?php
    }
    ?>

    is there something like this for edd?

    Plugin Support Mihai Joldis

    (@misulicus)

    Hi @graphirancom

    You can use any of the EDD functions inside PHP template files to restrict content.
    For example you can use the edd_has_user_purchased() function to check if a user has purchased a specific Download before.

    Thread Starter hamoon

    (@graphirancom)

    how? i want to use this shortcode in my theme
    [edd_restrict id=”any”]
    text [/edd_restrict]
    but i need put php not a text bettwen it.
    a php like this :
    <?php include(TEMPLATEPATH.”/adsense9.php”);?>
    i want to run this php between those shortcodes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Restrict Custom fields With Edd’ is closed to new replies.