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

@@ -41,11 +41,12 @@ add_action('df_after_process', 'prof_after_form_transfert_validation_CIPF', 10,
*
*/
function prof_profil_check_CIPF() {
PLGNTLS_class::debug_infos();
PLGNTLS_class::debug_infos(2);
// is an author page
if (!is_author())
return;
PLGNTLS_class::debug_infos();
// the way to find the id of the author of an author_page
$author_id = get_queried_object_id();
@@ -63,7 +64,7 @@ add_action('wp', 'prof_profil_check_CIPF', 11);
*
*/
function prof_profil_redirects_CIPF() {
PLGNTLS_class::debug_infos();
PLGNTLS_class::debug_infos(2);
$role_fipf = PLGNTLS_class::ROLE_FIPF;
$role_admin = PLGNTLS_class::ROLE_ADMIN;
$role_partner = PLGNTLS_class::ROLE_PARTNER;
@@ -75,6 +76,7 @@ function prof_profil_redirects_CIPF() {
if (et_fb_is_enabled()) {
return;
}
PLGNTLS_class::debug_infos();
/*
@@ -128,11 +130,12 @@ add_action('template_redirect', 'prof_profil_redirects_CIPF', 11);
*
*/
function prof_profil_scripts_CIPF() {
PLGNTLS_class::debug_infos();
PLGNTLS_class::debug_infos(2);
// is an author page
if (!is_author())
return;
PLGNTLS_class::debug_infos();
// the way to find the id of the author of an author_page
$author_id = get_queried_object_id();