moved all aptches from cipf plugin to fbpatch

This commit is contained in:
asus
2024-03-24 17:06:10 +01:00
parent 1745d8754d
commit 569f4524d3
14 changed files with 96 additions and 631 deletions

View File

@@ -0,0 +1,52 @@
<?php
namespace FBPATCH;
/*
* it means someone outside wp is accessing the file, in this case kill it.
*/
if (!defined('ABSPATH')) {
die('You can not access this file!');
}
/*
* 4674 : ../../../../wordpress_docker/volumes/wp_volume/wp-content/plugins/divi-form-builder/includes/modules/Form/Form.php
*
*/
//function form_partner_before_render_CIPF() {
// PLGNTLS_class::debug_infos();
//
// $cipf_form_partner = new PLGNTLS_class();
// $cipf_form_partner->add_to_front(array(
// 'css/hide_show_form_elements.css',
// ));
//}
//add_action('de_fb_before_form_render', 'form_partner_before_render_CIPF');
/*
* 305 : ../../../../wordpress_docker/volumes/wp_volume/wp-content/plugins/divi-form-builder/includes/DiviFormBuilder.php
*
*/
function form_partner_before_process($form_id, $post_array, $form_type) {
error_log("form_id: " . json_encode($form_id));
error_log("post_array: " . json_encode($post_array));
error_log("form_type: " . json_encode($form_type));
}
add_action('df_before_process', __NAMESPACE__.'\form_partner_before_process', 10, 3);
/*
* 506 : ../../../../wordpress_docker/volumes/wp_volume/wp-content/plugins/divi-form-builder/includes/DiviFormBuilder.php
*
*/
function form_partner_before_insert($form_id, $post_array) {
error_log("form_id: " . json_encode($form_id));
error_log("post_array: " . json_encode($post_array));
}
add_action('df_before_insert_post', __NAMESPACE__.'\form_partner_before_insert', 10, 2);
?>