soflyy / breakdance-bugs

Bug reports from Breakdance users.
40 stars 6 forks source link

Incompatible with Restrict with Stripe plugin #991

Open dreadedhamish opened 9 months ago

dreadedhamish commented 9 months ago

Cross-posted to Restrict with Stipe Wordpress page here: https://wordpress.org/support/topic/incompatible-with-breakdance-page-builder/

'Restrict with Stripe' is a simple content locker by the team that made Paid Memberships Pro.

When a user visits a page that is restricted and doesn't have a valid subsription they are presented with a "Purchase Access" dialogue. When I use restrict a regular page with Restrict with Stripe it correctly replaces the page content with a 'purchase access' dialogue. When I then enable Breakdance on that page the dialogue is not triggered and the content of the restricted page is shown.

The php file that restricts content can be found here: https://github.com/strangerstudios/restrict-with-stripe/blob/dev/includes/content.php