- updated all occurences of Plgntls:: constantes for Cipf:: const

- update menu to use the new methods
This commit is contained in:
asus
2024-04-02 15:45:54 +02:00
parent 64dc0ffbc5
commit 1f5fff26d6
25 changed files with 404 additions and 549 deletions

View File

@@ -18,7 +18,7 @@ if (!defined('ABSPATH')) {
*/
function payment_page_checks_CIPF() {
Plgntls::debug_infos(2);
$slug_paypal_page = Plgntls::SLUG_PAYPAL_PAGE;
$slug_paypal_page = Cipf::SLUG_PAYPAL_PAGE;
// check the slug
if (!is_page($slug_paypal_page)) {
@@ -43,8 +43,8 @@ add_action('wp', 'payment_page_checks_CIPF');
*/
function payment_page_redirects_CIPF() {
Plgntls::debug_infos(2);
$slug_paypal_page = Plgntls::SLUG_PAYPAL_PAGE;
$role_prof = Plgntls::ROLE_PROF;
$slug_paypal_page = Cipf::SLUG_PAYPAL_PAGE;
$role_prof = Cipf::ROLE_PROF;
// don't redirect if it is the divi builder mode
if (et_fb_is_enabled()) {
@@ -78,7 +78,7 @@ add_action('template_redirect', 'payment_page_redirects_CIPF');
*/
function payment_page_scripts_CIPF() {
Plgntls::debug_infos(2);
$slug_paypal_page = Plgntls::SLUG_PAYPAL_PAGE;
$slug_paypal_page = Cipf::SLUG_PAYPAL_PAGE;
// check the slug
if (!is_page($slug_paypal_page)) {