wip debug redirections
This commit is contained in:
@@ -10,13 +10,28 @@ if (!defined('ABSPATH')) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* custom action in php on custom form submission
|
||||
* custom forms are not processed by divi form builder
|
||||
* so they don't change between hooks before and after process
|
||||
*
|
||||
*/
|
||||
function admin_validate_prof_CIPF($form_id, $post_array, $form_type) {
|
||||
function admin_validate_prof_CIPF() {
|
||||
PLGNTLS_class::debug_infos();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* calling the action to validate from the FormBuilder hook
|
||||
*
|
||||
*/
|
||||
function custom_form_admin_validate_prof_CIPF($form_id, $post_array, $form_type) {
|
||||
PLGNTLS_class::debug_infos();
|
||||
$admin_validate_prof_field = PLGNTLS_class::ADMIN_VALIDATE_PROF_FIELD;
|
||||
|
||||
@@ -36,9 +51,29 @@ function admin_validate_prof_CIPF($form_id, $post_array, $form_type) {
|
||||
if ($contains_id === false)
|
||||
return;
|
||||
|
||||
/* custom action */
|
||||
admin_validate_prof_CIPF();
|
||||
}
|
||||
add_action('df_before_process', 'admin_validate_prof_CIPF', 10, 3);
|
||||
add_action('df_before_process', 'custom_form_admin_validate_prof_CIPF', 10, 3);
|
||||
|
||||
|
||||
/*
|
||||
* calling the action to validate from the
|
||||
*
|
||||
function custom_link_intercept() {
|
||||
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();
|
||||
}
|
||||
}
|
||||
add_action('init', 'custom_link_intercept');
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user