- wip trying to patch jquery url validator

- resolve conflict in addition of multiple vars and ajax function
This commit is contained in:
asus
2024-02-18 01:21:08 +01:00
parent 444cb1dbc0
commit daaf6a8a42
6 changed files with 112 additions and 49 deletions

View File

@@ -103,7 +103,6 @@ add_post_meta(get_the_ID(), "data_user_email", $data);
"acf_get_fields",
"user_data",
"current_user",
"acf_get_email",
"names",
"ages",
)
@@ -250,6 +249,24 @@ function my_custom_url_handler($query)
}
}
/**
* in `wp-content/plugins/divi-form-builder/includes/DiviFormBuilder.php`
* line 1328 : wp_register_script( 'de_fb_validate', DE_FB_URL . '/js/jquery.validation/jquer
* line 1354 : wp_enqueue_script( 'de_fb_validate' );
*/
function add_my_jquery_patch()
{
$fipfcard_tools = new PLGNTLS_class();
return $fipfcard_tools->add_to_front
(
array
(
'de_fb_validate' => 'js/jquery_validator_patch.js',
)
);
}
add_action('wp_enqueue_scripts', 'add_my_jquery_patch');
// Hook into the 'acf/save_post' action
add_action('acf/save_post', 'handle_acf_form_submission', 5); // 20 is the priority, you can adjust it as needed
function handle_acf_form_submission($post_id)