changed profil redirection so it does not need a real page anymore
This commit is contained in:
@@ -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');
|
||||
*/
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user