wip debug redirections

This commit is contained in:
asus
2024-03-14 12:31:31 +01:00
parent ecc072e25b
commit 76f2e8ba00
14 changed files with 165 additions and 29 deletions

View File

@@ -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');
*/
/*