wip filter email registration

This commit is contained in:
asus
2024-03-26 22:33:41 +01:00
parent dbb6dc0d19
commit 0136be4316
15 changed files with 97 additions and 24 deletions

View File

@@ -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