added url patch as a separate plugin

This commit is contained in:
asus
2024-02-18 11:00:01 +01:00
parent ee2dafbccc
commit 74fc6e3d1b
4 changed files with 50 additions and 13 deletions

View File

@@ -233,6 +233,7 @@ $_POST
"form_type_confirm":""
}
*/
add_action('parse_request', 'my_custom_url_handler');
function my_custom_url_handler($query)
{
@@ -254,18 +255,18 @@ function my_custom_url_handler($query)
* Undefined variable: min_length in /var/www/html/wp-content/plugins/divi-form-builder/includes/modules/FormField/FormField.php on line 5933
* Undefined variable: use_icon in /var/www/html/wp-content/plugins/divi-form-builder/includes/modules/FormField/FormField.php on line 5984
*/
function add_my_jquery_patch()
{
$fipfcard_tools = new PLGNTLS_class();
return $fipfcard_tools->add_to_front
(
array
(
'de_fb_validate' => 'js/jquery_validator_url_patch.js',
)
);
}
add_action('wp_enqueue_scripts', 'add_my_jquery_patch');
// function add_my_jquery_patch()
// {
// $fipfcard_tools = new PLGNTLS_class();
// return $fipfcard_tools->add_to_front
// (
// array
// (
// 'de_fb_validate' => 'js/jquery_validator_url_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