- updated all occurences of Plgntls:: constantes for Cipf:: const
- update menu to use the new methods
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user