Filter out reused blocks
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Filter out reused blocks’ is closed to new replies.