- 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

@@ -16,8 +16,8 @@ if (!defined('ABSPATH')) {
*/
function hide_admin_bar_CIPF() {
Plgntls::debug_infos(2);
$role_admin = Plgntls::ROLE_ADMIN;
$role_fipf = Plgntls::ROLE_FIPF;
$role_admin = Cipf::ROLE_ADMIN;
$role_fipf = Cipf::ROLE_FIPF;
/*
@@ -54,8 +54,8 @@ add_action('after_setup_theme', 'hide_admin_bar_CIPF');
*/
function restrict_admin_access_CIPF() {
Plgntls::debug_infos(2);
$role_admin = Plgntls::ROLE_ADMIN;
$role_fipf = Plgntls::ROLE_FIPF;
$role_admin = Cipf::ROLE_ADMIN;
$role_fipf = Cipf::ROLE_FIPF;
/*
* this concerns logged_in users, for admin page