new profs redirects to command

This commit is contained in:
asus
2024-03-20 14:44:19 +01:00
parent 0717a7d9e4
commit b93a3298d2
6 changed files with 34 additions and 8 deletions

View File

@@ -131,6 +131,14 @@ function prof_profil_redirects_CIPF() {
redirect_home_CIPF();
}
/*
* if connected prof is new, redirect to form commande
*
*/
if (is_account_new_CIPF()) {
redirect_command_CIPF();
}
}
add_action('template_redirect', 'prof_profil_redirects_CIPF', 11);