- wip trying to patch jquery url validator
- resolve conflict in addition of multiple vars and ajax function
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user