• Resolved ybabel

    (@ybabel)


    On my site I have reusable blocks on my side bar.
    It happens that this blocks are also filtered as “restricted content” and I have the “Oops” content that is displayed inside.

    To correct I had to change public/class-woocommerce-pay-per-post-restrict-content.php:173 like this :

    public function check_if_has_access() : bool
        {
            if (!in_the_loop()) return true;
            Woocommerce_Pay_Per_Post_Helper::logger( 'Post ID: ' . get_the_ID() . ' - Woocommerce_Pay_Per_Post_Restrict_Content/check_if_has_access  - has been called.' );

    I’m not sure if it’s the best way to do it, but it worked.

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

    (@mattpramschufer)

    hey @ybabel thanks for reaching out. When you say “I have reusable blocks on my sidebar” Is that a plugin? What are these reusable blocks?

    if that change works for you then great, but just remember anytime you update the plugin those changes will get reverted. I’d like to hear more about your issue so that I can make a determination if I need to add a custom filter there to allow for things like this.

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    Since I have not received any response, I am closing this thread now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filter out reused blocks’ is closed to new replies.