How to check if user is allowed to "Pay per View" from php file


I need to know how to check if user is allowed to "Pay per View" froma php file like content.php or index,php

Is there any function I can use to do so?

Thanks in advance

  • Tyler Postle

    Hey Oscar,

    Sorry I'm not sure I understand what you're after here.

    So you want to allow the user to pay in order to view a php file or you want to check if the user is allowed to view content based on rules in a php file?

    If you could give an example of a scenario that would be helpful :slight_smile:

    Look forward to hearing back!

    All the best,

    PS. I notice it looks like you might be on an out-dated version. It's a good idea to make sure the plugin is up to date, currently we're on version 1.4.2.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.