• Resolved martynch

    (@martynch)


    I’m trying to restrict part of our website so only users who have purchased via WooCommerce can actually submit their predictions.

    By the way, fantastic plugin!

    I’m using Restrict Pages with WooCommerce on our club’s website and have restricted cliftonfc.co.uk/pool

    It works to a point but I can still see the prediction sheet, I’m not sure how to stop this.
    Your access to this page expired or you haven’t bought products needed to access this page. Buy World Cup in order to access this page!

    If you take a look over at our site you will see what I mean

    The username and password are demowc

    Many thanks,
    Martyn

    The page I need help with: [log in to see the link]

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

    (@martynch)

    Anybody?

    Thanks

    Plugin Author AntoineH

    (@antoineh)

    I don’t have any experience with either WooCommerce or the Restrict Pages plugin, but your problem looks like both the Restrict Pages plugin and my plugin try to make changes to the content of a page via a content filter. Maybe we’ll have to tweak the order in which they are executed to make sure the Restrict Pages comes last (assuming that plugin simply overwrites the entire content with a message when you haven’t paid).

    You can change the content filter priority for my plugin by adding the following to your wp-config:

    define( 'FOOTBALLPOOL_CONTENT_FILTER_PRIORITY', 5 );

    Just make sure you add it above the /* That's all, stop editing! Happy blogging. */ line. The lower the number, the earlier my plugin executes. Default value for WordPress is 10.

    • This reply was modified 3 years, 5 months ago by AntoineH.
    Thread Starter martynch

    (@martynch)

    This worked a treat, thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Restrict Access – Prediction Sheet’ is closed to new replies.