• Resolved vinillab

    (@vinillab)


    How can I use shortcodes to restrict content in a custom template file?

    I would like to check if the user has access to a specific plan. If he does, show im a template partial. If he doesn’t show him another template partial.

    Example code:

    <?php echo do_shortcode(“[arm_restrict_content plan=’5,” type=’show’]”); ?>

    <?php get_template_part(‘template-parts/show-video-course’); ?>

    <?php echo do_shortcode(“[armelse]”); ?>

    <?php get_template_part(‘template-parts/restricted-content’); ?>

    <?php echo do_shortcode(“[/arm_restrict_content]”); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author reputeinfosystems

    (@reputeinfosystems)

    Hello,

    I think you are using premium version and you have opened support ticket with us. We have already replied you there.

    Thanks,

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    For pro or commercial product support please contact the author directly on their site. This includes any pre-sales topics as well.

    As the author is aware, commercial products are not supported in these forums. I am sure they will have no problem supporting you there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcodes in Template’ is closed to new replies.