- in plgntls transformed process to add fetch script even if list of srcs is empty

- created a patch for form builder calculation
This commit is contained in:
asus
2024-03-12 19:54:18 +01:00
parent 591add448f
commit 38f9b0ba72
8 changed files with 109 additions and 22 deletions

View File

@@ -0,0 +1,21 @@
<?php
/*
*/
function add_form_calculation_patch_CIPF() {
error_log('inside wp_enqueue');
$handle = 'form_calculation_patch';
$url = PLGNTLS_class::root_url() . 'js/form_builder_patch/form_calculation.js';
$dependencies = array('de_fb_calc');
$version = '';
$defer = true;
wp_enqueue_script( $handle, $url, $dependencies, $version, $defer);
}
add_action('wp_enqueue_scripts', 'add_form_calculation_patch_CIPF', 999);
?>

View File

@@ -109,17 +109,16 @@ form_type
*/
function test_partner_CIPF($form_id, $post_array, $form_type) {
function test_partner_CIPF($form_id, $post_array) {
error_log("---");
error_log("in test_partner_CIPF");
error_log("form_id");
error_log(json_encode($form_id));
error_log("post_array");
error_log(json_encode($post_array));
error_log("form_type");
error_log(json_encode($form_type));
}
add_action( 'df_before_process', 'test_partner_CIPF', 10, 3);
add_action( 'df_before_process', 'test_partner_CIPF', 10, 2);
add_action( 'df_after_process', 'test_partner_CIPF', 10, 2);