wip filter email registration
This commit is contained in:
@@ -15,7 +15,7 @@ if (!defined('ABSPATH')) {
|
||||
* hide admin bar if access a front page and is not an admin
|
||||
*/
|
||||
function hide_admin_bar_CIPF() {
|
||||
PLGNTLS_class::debug_infos();
|
||||
PLGNTLS_class::debug_infos(2);
|
||||
$role_admin = PLGNTLS_class::ROLE_ADMIN;
|
||||
$role_fipf = PLGNTLS_class::ROLE_FIPF;
|
||||
|
||||
@@ -27,6 +27,7 @@ function hide_admin_bar_CIPF() {
|
||||
if (is_admin()) {
|
||||
return;
|
||||
}
|
||||
PLGNTLS_class::debug_infos();
|
||||
|
||||
|
||||
/*
|
||||
@@ -52,7 +53,7 @@ add_action('after_setup_theme', 'hide_admin_bar_CIPF');
|
||||
*
|
||||
*/
|
||||
function restrict_admin_access_CIPF() {
|
||||
PLGNTLS_class::debug_infos();
|
||||
PLGNTLS_class::debug_infos(2);
|
||||
$role_admin = PLGNTLS_class::ROLE_ADMIN;
|
||||
$role_fipf = PLGNTLS_class::ROLE_FIPF;
|
||||
|
||||
@@ -66,6 +67,7 @@ function restrict_admin_access_CIPF() {
|
||||
if (!is_admin()) {
|
||||
return;
|
||||
}
|
||||
PLGNTLS_class::debug_infos();
|
||||
|
||||
/*
|
||||
* some roles are allowed to access the admin panel
|
||||
|
||||
Reference in New Issue
Block a user