diff --git a/includes/rest-api/controllers/class-rest-paywall.php b/includes/rest-api/controllers/class-rest-paywall.php index 5a21e14..72b5b3b 100644 --- a/includes/rest-api/controllers/class-rest-paywall.php +++ b/includes/rest-api/controllers/class-rest-paywall.php @@ -156,6 +156,7 @@ public function process_paywall_verify_request( $request ) // this adds the "shortcode" to the content if the Gutenberg block is used // the shortcode is then parsed in BLN_Publisher_Paywall with a regex $content = do_blocks($post->post_content); + $content = do_shortcode($content); $paywall = new BLN_Publisher_Paywall($plugin, ['content' => $content, 'post_id' => $post_id]); $protected = $paywall->get_protected_content();