This members-only tutorial provides the code to register a custom condition for outputting elements to users depending on whether they have purchased specific WooCommerce product(s) via the Pay For Post with WooCommerce plugin in Oxygen.

With a Page protected like this:

and the Page edited with Oxygen and

our custom condition set to a Section having "This is protected content." heading


condition applied to a Section having the no access message code, this is what the Page will appear to users that have NOT purchased the associated product(s), "Beanie" in this case:

and users that have purchased the product will see:

Step 1 - Register the Condition

Add the following using a plugin like Code Snippets or in a custom functionality plugin:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $399 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



You need to be logged in to view and post comments.
Not a member yet? Join here.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: