fixed redirection preventing to edit in divi builder mode

This commit is contained in:
asus
2024-03-20 11:24:40 +01:00
parent 4eee697078
commit 58f287f00f
3 changed files with 15 additions and 0 deletions

View File

@@ -45,6 +45,10 @@ function payment_page_redirects_CIPF() {
$slug_paypal_page = PLGNTLS_class::SLUG_PAYPAL_PAGE;
$role_prof = PLGNTLS_class::ROLE_PROF;
// don't redirect if it is the divi builder mode
if (et_fb_is_enabled) {
return;
}
// check the slug
if (!is_page($slug_paypal_page)) {
return;