changed profil redirection so it does not need a real page anymore

This commit is contained in:
asus
2024-03-14 15:07:50 +01:00
parent 30c84135ef
commit 4c81476336
3 changed files with 55 additions and 23 deletions

View File

@@ -57,18 +57,18 @@ add_action('df_before_process', 'custom_form_admin_validate_prof_CIPF', 10, 3);
/*
* calling the action to validate from the
* calling the action to validate from the url query
*
function custom_link_intercept() {
function url_custom_form_admin_validate_prof_CIPF() {
PLGNTLS_class::debug_infos();
$query_page_redirection = PLGNTLS_class::QUERY_REDIRECTION_PROFIL;
// Check if the request contains ?QUERY_REDIRECTION_PROFIL
if(isset($_GET[$query_page_redirection])) {
admin_validate_prof_CIPF();
}
if(!isset($_GET[$query_page_redirection]))
return;
admin_validate_prof_CIPF();
}
add_action('init', 'custom_link_intercept');
add_action('init', 'url_custom_form_admin_validate_prof_CIPF');
*/