|
|
|
|
@@ -1,489 +0,0 @@
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 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_CIPF($form_id, $post_array, $form_type) {
|
|
|
|
|
PLGNTLS_class::debug_infos();
|
|
|
|
|
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', 'form_partner_before_process_CIPF', 10, 3);
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* 506 : ../../../../wordpress_docker/volumes/wp_volume/wp-content/plugins/divi-form-builder/includes/DiviFormBuilder.php
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
function form_partner_before_insert_CIPF($form_id, $post_array) {
|
|
|
|
|
PLGNTLS_class::debug_infos();
|
|
|
|
|
error_log("form_id: " . json_encode($form_id));
|
|
|
|
|
error_log("post_array: " . json_encode($post_array));
|
|
|
|
|
}
|
|
|
|
|
add_action('df_before_insert_post', 'form_partner_before_insert_CIPF', 10, 2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
image 1 afficher :
|
|
|
|
|
{"ID":36483,"key":"field_65d8bc5d5bf8b","label":"Offre 1 image","name":"offre_1_image","aria-label":"","prefix":"acf","type":"image","value":{"ID":41587,"id":41587,"title":"unnamed-26.jpg","filename":"unnamed-26.jpg","filesize":573797,"url":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26.jpg","link":"https:\/\/local-cipf-plugin.com\/unnamed-26-jpg\/","alt":"","author":"24","description":"","caption":"","name":"unnamed-26-jpg","status":"inherit","uploaded_to":0,"date":"2024-03-22 22:03:50","modified":"2024-03-22 22:03:50","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/local-cipf-plugin.com\/wp-includes\/images\/media\/default.png","width":1500,"height":600,"sizes":{"thumbnail":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-150x150.jpg","thumbnail-width":150,"thumbnail-height":150,"medium":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-300x120.jpg","medium-width":300,"medium-height":120,"medium_large":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-768x307.jpg","medium_large-width":768,"medium_large-height":307,"large":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-1024x410.jpg","large-width":1024,"large-height":410,"1536x1536":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26.jpg","1536x1536-width":1500,"1536x1536-height":600,"2048x2048":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26.jpg","2048x2048-width":1500,"2048x2048-height":600,"et-pb-post-main-image":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-400x250.jpg","et-pb-post-main-image-width":400,"et-pb-post-main-image-height":250,"et-pb-post-main-image-fullwidth":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-1080x600.jpg","et-pb-post-main-image-fullwidth-width":1080,"et-pb-post-main-image-fullwidth-height":600,"et-pb-portfolio-image":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-400x284.jpg","et-pb-portfolio-image-width":400,"et-pb-portfolio-image-height":284,"et-pb-portfolio-module-image":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-510x382.jpg","et-pb-portfolio-module-image-width":510,"et-pb-portfolio-module-image-height":382,"et-pb-portfolio-image-single":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-1080x432.jpg","et-pb-portfolio-image-single-width":1080,"et-pb-portfolio-image-single-height":432,"et-pb-gallery-module-image-portrait":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-400x516.jpg","et-pb-gallery-module-image-portrait-width":400,"et-pb-gallery-module-image-portrait-height":516,"et-pb-post-main-image-fullwidth-large":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26.jpg","et-pb-post-main-image-fullwidth-large-width":1500,"et-pb-post-main-image-fullwidth-large-height":600,"et-pb-image--responsive--desktop":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-1280x512.jpg","et-pb-image--responsive--desktop-width":1280,"et-pb-image--responsive--desktop-height":512,"et-pb-image--responsive--tablet":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-980x392.jpg","et-pb-image--responsive--tablet-width":980,"et-pb-image--responsive--tablet-height":392,"et-pb-image--responsive--phone":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-480x192.jpg","et-pb-image--responsive--phone-width":480,"et-pb-image--responsive--phone-height":192}},"menu_order":5,"instructions":"","required":0,"id":"","class":"","conditional_logic":0,"parent":36473,"wrapper":{"width":"","class":"","id":""},"return_format":"array","library":"all","min_width":"","min_height":"","min_size":"","max_width":"","max_height":"","max_size":"","mime_types":"","preview_size":"medium","_name":"offre_1_image","_valid":1}
|
|
|
|
|
image 1 masquer :
|
|
|
|
|
{"ID":36483,"key":"field_65d8bc5d5bf8b","label":"Offre 1 image","name":"offre_1_image","aria-label":"","prefix":"acf","type":"image","value":{"ID":41587,"id":41587,"title":"unnamed-26.jpg","filename":"unnamed-26.jpg","filesize":573797,"url":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26.jpg","link":"https:\/\/local-cipf-plugin.com\/unnamed-26-jpg\/","alt":"","author":"24","description":"","caption":"","name":"unnamed-26-jpg","status":"inherit","uploaded_to":0,"date":"2024-03-22 22:03:50","modified":"2024-03-22 22:03:50","menu_order":0,"mime_type":"image\/jpeg","type":"image","subtype":"jpeg","icon":"https:\/\/local-cipf-plugin.com\/wp-includes\/images\/media\/default.png","width":1500,"height":600,"sizes":{"thumbnail":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-150x150.jpg","thumbnail-width":150,"thumbnail-height":150,"medium":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-300x120.jpg","medium-width":300,"medium-height":120,"medium_large":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-768x307.jpg","medium_large-width":768,"medium_large-height":307,"large":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-1024x410.jpg","large-width":1024,"large-height":410,"1536x1536":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26.jpg","1536x1536-width":1500,"1536x1536-height":600,"2048x2048":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26.jpg","2048x2048-width":1500,"2048x2048-height":600,"et-pb-post-main-image":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-400x250.jpg","et-pb-post-main-image-width":400,"et-pb-post-main-image-height":250,"et-pb-post-main-image-fullwidth":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-1080x600.jpg","et-pb-post-main-image-fullwidth-width":1080,"et-pb-post-main-image-fullwidth-height":600,"et-pb-portfolio-image":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-400x284.jpg","et-pb-portfolio-image-width":400,"et-pb-portfolio-image-height":284,"et-pb-portfolio-module-image":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-510x382.jpg","et-pb-portfolio-module-image-width":510,"et-pb-portfolio-module-image-height":382,"et-pb-portfolio-image-single":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-1080x432.jpg","et-pb-portfolio-image-single-width":1080,"et-pb-portfolio-image-single-height":432,"et-pb-gallery-module-image-portrait":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-400x516.jpg","et-pb-gallery-module-image-portrait-width":400,"et-pb-gallery-module-image-portrait-height":516,"et-pb-post-main-image-fullwidth-large":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26.jpg","et-pb-post-main-image-fullwidth-large-width":1500,"et-pb-post-main-image-fullwidth-large-height":600,"et-pb-image--responsive--desktop":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-1280x512.jpg","et-pb-image--responsive--desktop-width":1280,"et-pb-image--responsive--desktop-height":512,"et-pb-image--responsive--tablet":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-980x392.jpg","et-pb-image--responsive--tablet-width":980,"et-pb-image--responsive--tablet-height":392,"et-pb-image--responsive--phone":"https:\/\/local-cipf-plugin.com\/wp-content\/uploads\/de_fb_uploads\/unnamed-26-480x192.jpg","et-pb-image--responsive--phone-width":480,"et-pb-image--responsive--phone-height":192}},"menu_order":5,"instructions":"","required":0,"id":"","class":"","conditional_logic":0,"parent":36473,"wrapper":{"width":"","class":"","id":""},"return_format":"array","library":"all","min_width":"","min_height":"","min_size":"","max_width":"","max_height":"","max_size":"","mime_types":"","preview_size":"medium","_name":"offre_1_image","_valid":1}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
offre 1 'afficher' :
|
|
|
|
|
---
|
|
|
|
|
- BEFORE PROCESS :
|
|
|
|
|
form_id: "crea_partenaire"
|
|
|
|
|
post_array: {
|
|
|
|
|
"post_status":"publish",
|
|
|
|
|
"field_title":[
|
|
|
|
|
"Nom commercial",
|
|
|
|
|
"Votre site Internet",
|
|
|
|
|
"Dans quelle rubrique devez-vous para\u00eetre ? ",
|
|
|
|
|
"L\\'accroche en t\u00eate de page",
|
|
|
|
|
"Pr\u00e9sentez-vous",
|
|
|
|
|
"Votre logo ",
|
|
|
|
|
"Image principale",
|
|
|
|
|
"Voulez-vous afficher cette offre 1 ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"Voulez-vous afficher cette offre ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"Voulez-vous afficher cette offre ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"slug"
|
|
|
|
|
],
|
|
|
|
|
"post_title":"test_hugo",
|
|
|
|
|
"meta_input":[
|
|
|
|
|
"de_fb_url_partenaire",
|
|
|
|
|
"de_fb_logo_partenaire",
|
|
|
|
|
"de_fb_afficher_offre_1",
|
|
|
|
|
"de_fb_duree_offre_1",
|
|
|
|
|
"de_fb_fin_offre_1",
|
|
|
|
|
"de_fb_offre_1_titre",
|
|
|
|
|
"de_fb_offre_1_txt",
|
|
|
|
|
"de_fb_offre_1_image",
|
|
|
|
|
"de_fb_afficher_offre_2",
|
|
|
|
|
"de_fb_duree_offre_2",
|
|
|
|
|
"de_fb_fin_offre_2",
|
|
|
|
|
"de_fb_offre_2_titre",
|
|
|
|
|
"de_fb_offre_2_txt",
|
|
|
|
|
"de_fb_offre_2_image",
|
|
|
|
|
"de_fb_afficher_offre_3",
|
|
|
|
|
"de_fb_duree_offre_3",
|
|
|
|
|
"de_fb_fin_offre_3",
|
|
|
|
|
"de_fb_offre_3_titre",
|
|
|
|
|
"de_fb_offre_3_txt",
|
|
|
|
|
"de_fb_offre_3_image"
|
|
|
|
|
],
|
|
|
|
|
"url_partenaire":"",
|
|
|
|
|
"tax_input":[
|
|
|
|
|
"de_fb_category"
|
|
|
|
|
],
|
|
|
|
|
"category":"autres",
|
|
|
|
|
"post_excerpt":"accroche",
|
|
|
|
|
"post_content":"presentation",
|
|
|
|
|
"_ajax_linking_nonce":"afc8cd8c69",
|
|
|
|
|
"logo_partenaire":"41585",
|
|
|
|
|
"post_thumbnail":"41584",
|
|
|
|
|
"afficher_offre_1":"Afficher",
|
|
|
|
|
"duree_offre_1":"Permanente",
|
|
|
|
|
"offre_1_titre":"titre 1",
|
|
|
|
|
"offre_1_txt":"offre 1",
|
|
|
|
|
"offre_1_image":"41587",
|
|
|
|
|
"afficher_offre_2":"Afficher",
|
|
|
|
|
"duree_offre_2":"Permanente",
|
|
|
|
|
"offre_2_titre":"titre 2",
|
|
|
|
|
"offre_2_txt":"offre 2",
|
|
|
|
|
"offre_2_image":"41588",
|
|
|
|
|
"afficher_offre_3":"Afficher",
|
|
|
|
|
"duree_offre_3":"Permanente",
|
|
|
|
|
"offre_3_titre":"titre 3",
|
|
|
|
|
"offre_3_txt":"offre 3",
|
|
|
|
|
"offre_3_image":"41589",
|
|
|
|
|
"post_name":"test_hugo",
|
|
|
|
|
"ID":"41586",
|
|
|
|
|
"form_type_confirm":""
|
|
|
|
|
}
|
|
|
|
|
- BEFORE INSERT :
|
|
|
|
|
form_type: "post"
|
|
|
|
|
form_id: "crea_partenaire"
|
|
|
|
|
post_array: {
|
|
|
|
|
"post_status":"publish",
|
|
|
|
|
"field_title":[
|
|
|
|
|
"Nom commercial",
|
|
|
|
|
"Votre site Internet",
|
|
|
|
|
"Dans quelle rubrique devez-vous para\u00eetre ? ",
|
|
|
|
|
"L\\'accroche en t\u00eate de page",
|
|
|
|
|
"Pr\u00e9sentez-vous",
|
|
|
|
|
"Votre logo ",
|
|
|
|
|
"Image principale",
|
|
|
|
|
"Voulez-vous afficher cette offre 1 ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre","Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"Voulez-vous afficher cette offre ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"Voulez-vous afficher cette offre ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"slug"
|
|
|
|
|
],
|
|
|
|
|
"post_title":"test_hugo",
|
|
|
|
|
"meta_input":{
|
|
|
|
|
"url_partenaire":"",
|
|
|
|
|
"_url_partenaire":"field_65cb83096d020",
|
|
|
|
|
"logo_partenaire":"41585",
|
|
|
|
|
"_logo_partenaire":"field_65cb79150ac4f",
|
|
|
|
|
"afficher_offre_1":"Afficher",
|
|
|
|
|
"_afficher_offre_1":"field_65d8cf09395a5",
|
|
|
|
|
"duree_offre_1":"Permanente",
|
|
|
|
|
"_duree_offre_1":"field_65f81843cc36e",
|
|
|
|
|
"fin_offre_1":[],
|
|
|
|
|
"offre_1_titre":"titre 1",
|
|
|
|
|
"_offre_1_titre":"field_65d8bbf6b4651",
|
|
|
|
|
"offre_1_txt":"offre 1",
|
|
|
|
|
"_offre_1_txt":"field_65d8bc395bf88",
|
|
|
|
|
"offre_1_image":"41587",
|
|
|
|
|
"_offre_1_image":"field_65d8bc5d5bf8b",
|
|
|
|
|
"afficher_offre_2":"Afficher",
|
|
|
|
|
"_afficher_offre_2":"field_65e20fb8785ba",
|
|
|
|
|
"duree_offre_2":"Permanente",
|
|
|
|
|
"_duree_offre_2":"field_65f3fc577fec4",
|
|
|
|
|
"fin_offre_2":[],
|
|
|
|
|
"offre_2_titre":"titre 2",
|
|
|
|
|
"_offre_2_titre":"field_65d8bc201740b",
|
|
|
|
|
"offre_2_txt":"offre 2",
|
|
|
|
|
"_offre_2_txt":"field_65d8bc4c5bf89",
|
|
|
|
|
"offre_2_image":"41588",
|
|
|
|
|
"_offre_2_image":"field_65d8bc6e5bf8c",
|
|
|
|
|
"afficher_offre_3":"Afficher",
|
|
|
|
|
"_afficher_offre_3":"field_65d8cf48395a6",
|
|
|
|
|
"duree_offre_3":"Permanente",
|
|
|
|
|
"_duree_offre_3":"field_65f3ff78c7ffd",
|
|
|
|
|
"fin_offre_3":[],
|
|
|
|
|
"offre_3_titre":"titre 3",
|
|
|
|
|
"_offre_3_titre":"field_65d8bc2e644ab",
|
|
|
|
|
"offre_3_txt":"offre 3",
|
|
|
|
|
"_offre_3_txt":"field_65d8bc545bf8a",
|
|
|
|
|
"offre_3_image":"41589",
|
|
|
|
|
"_offre_3_image":"field_65d8bc8c5bf8e"
|
|
|
|
|
},
|
|
|
|
|
"tax_input":{"category":[1]},
|
|
|
|
|
"post_excerpt":"accroche",
|
|
|
|
|
"post_content":"presentation",
|
|
|
|
|
"_ajax_linking_nonce":"afc8cd8c69",
|
|
|
|
|
"post_thumbnail":"41584",
|
|
|
|
|
"post_name":"test_hugo",
|
|
|
|
|
"ID":"41586",
|
|
|
|
|
"form_type_confirm":"",
|
|
|
|
|
"post_type":"post",
|
|
|
|
|
"post_date":"2024-03-22 22:59:57"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-----------------------------------------
|
|
|
|
|
offre 1 'masquer' :
|
|
|
|
|
---
|
|
|
|
|
- BEFORE PROCESS :
|
|
|
|
|
form_id: "crea_partenaire"
|
|
|
|
|
post_array: {
|
|
|
|
|
"post_status":"publish",
|
|
|
|
|
"field_title":[
|
|
|
|
|
"Nom commercial",
|
|
|
|
|
"Votre site Internet",
|
|
|
|
|
"Dans quelle rubrique devez-vous para\u00eetre ? ",
|
|
|
|
|
"L\\'accroche en t\u00eate de page",
|
|
|
|
|
"Pr\u00e9sentez-vous",
|
|
|
|
|
"Votre logo ",
|
|
|
|
|
"Image principale",
|
|
|
|
|
"Voulez-vous afficher cette offre 1 ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"Voulez-vous afficher cette offre ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"Voulez-vous afficher cette offre ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"slug"
|
|
|
|
|
],
|
|
|
|
|
"post_title":"test_hugo",
|
|
|
|
|
"meta_input":[
|
|
|
|
|
"de_fb_url_partenaire",
|
|
|
|
|
"de_fb_logo_partenaire",
|
|
|
|
|
"de_fb_afficher_offre_1",
|
|
|
|
|
"de_fb_duree_offre_1",
|
|
|
|
|
"de_fb_fin_offre_1",
|
|
|
|
|
"de_fb_offre_1_titre",
|
|
|
|
|
"de_fb_offre_1_txt",
|
|
|
|
|
"de_fb_offre_1_image",
|
|
|
|
|
"de_fb_afficher_offre_2",
|
|
|
|
|
"de_fb_duree_offre_2",
|
|
|
|
|
"de_fb_fin_offre_2",
|
|
|
|
|
"de_fb_offre_2_titre",
|
|
|
|
|
"de_fb_offre_2_txt",
|
|
|
|
|
"de_fb_offre_2_image",
|
|
|
|
|
"de_fb_afficher_offre_3",
|
|
|
|
|
"de_fb_duree_offre_3",
|
|
|
|
|
"de_fb_fin_offre_3",
|
|
|
|
|
"de_fb_offre_3_titre",
|
|
|
|
|
"de_fb_offre_3_txt",
|
|
|
|
|
"de_fb_offre_3_image"
|
|
|
|
|
],
|
|
|
|
|
"url_partenaire":"",
|
|
|
|
|
"tax_input":[
|
|
|
|
|
"de_fb_category"
|
|
|
|
|
],
|
|
|
|
|
"category":"autres",
|
|
|
|
|
"post_excerpt":"accroche",
|
|
|
|
|
"post_content":"presentation",
|
|
|
|
|
"_ajax_linking_nonce":"afc8cd8c69",
|
|
|
|
|
"logo_partenaire":"41585",
|
|
|
|
|
"post_thumbnail":"41584",
|
|
|
|
|
"afficher_offre_1":"Masquer",
|
|
|
|
|
"offre_1_image":"41587",
|
|
|
|
|
"afficher_offre_2":"Afficher",
|
|
|
|
|
"duree_offre_2":"Permanente",
|
|
|
|
|
"offre_2_titre":"titre 2",
|
|
|
|
|
"offre_2_txt":"offre 2",
|
|
|
|
|
"offre_2_image":"41588",
|
|
|
|
|
"afficher_offre_3":"Afficher",
|
|
|
|
|
"duree_offre_3":"Permanente",
|
|
|
|
|
"offre_3_titre":"titre 3",
|
|
|
|
|
"offre_3_txt":"offre 3",
|
|
|
|
|
"offre_3_image":"41589",
|
|
|
|
|
"post_name":"test_hugo",
|
|
|
|
|
"ID":"41586",
|
|
|
|
|
"form_type_confirm":""
|
|
|
|
|
}
|
|
|
|
|
form_type: "post"
|
|
|
|
|
- BEFORE INSERT :
|
|
|
|
|
form_id: "crea_partenaire"
|
|
|
|
|
post_array: {
|
|
|
|
|
"post_status":"publish",
|
|
|
|
|
"field_title":[
|
|
|
|
|
"Nom commercial",
|
|
|
|
|
"Votre site Internet",
|
|
|
|
|
"Dans quelle rubrique devez-vous para\u00eetre ? ",
|
|
|
|
|
"L\\'accroche en t\u00eate de page",
|
|
|
|
|
"Pr\u00e9sentez-vous",
|
|
|
|
|
"Votre logo ",
|
|
|
|
|
"Image principale",
|
|
|
|
|
"Voulez-vous afficher cette offre 1 ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"Voulez-vous afficher cette offre ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"Voulez-vous afficher cette offre ?",
|
|
|
|
|
"Dur\u00e9e de l\\'offre",
|
|
|
|
|
"Validit\u00e9 de l\\'offre",
|
|
|
|
|
"Titre",
|
|
|
|
|
"Texte de l\\'offre",
|
|
|
|
|
"Image (facultatif)",
|
|
|
|
|
"slug"
|
|
|
|
|
],
|
|
|
|
|
"post_title":"test_hugo",
|
|
|
|
|
"meta_input":{
|
|
|
|
|
"url_partenaire":"",
|
|
|
|
|
"_url_partenaire":"field_65cb83096d020",
|
|
|
|
|
"logo_partenaire":"41585",
|
|
|
|
|
"_logo_partenaire":"field_65cb79150ac4f",
|
|
|
|
|
"afficher_offre_1":"Masquer",
|
|
|
|
|
"_afficher_offre_1":"field_65d8cf09395a5",
|
|
|
|
|
"duree_offre_1":[],
|
|
|
|
|
"fin_offre_1":[],
|
|
|
|
|
"offre_1_titre":[],
|
|
|
|
|
"offre_1_txt":[],
|
|
|
|
|
"offre_1_image":"41587",
|
|
|
|
|
"_offre_1_image":"field_65d8bc5d5bf8b",
|
|
|
|
|
"afficher_offre_2":"Afficher",
|
|
|
|
|
"_afficher_offre_2":"field_65e20fb8785ba",
|
|
|
|
|
"duree_offre_2":"Permanente",
|
|
|
|
|
"_duree_offre_2":"field_65f3fc577fec4",
|
|
|
|
|
"fin_offre_2":[],
|
|
|
|
|
"offre_2_titre":"titre 2",
|
|
|
|
|
"_offre_2_titre":"field_65d8bc201740b",
|
|
|
|
|
"offre_2_txt":"offre 2",
|
|
|
|
|
"_offre_2_txt":"field_65d8bc4c5bf89",
|
|
|
|
|
"offre_2_image":"41588",
|
|
|
|
|
"_offre_2_image":"field_65d8bc6e5bf8c",
|
|
|
|
|
"afficher_offre_3":"Afficher",
|
|
|
|
|
"_afficher_offre_3":"field_65d8cf48395a6",
|
|
|
|
|
"duree_offre_3":"Permanente",
|
|
|
|
|
"_duree_offre_3":"field_65f3ff78c7ffd",
|
|
|
|
|
"fin_offre_3":[],
|
|
|
|
|
"offre_3_titre":"titre 3",
|
|
|
|
|
"_offre_3_titre":"field_65d8bc2e644ab",
|
|
|
|
|
"offre_3_txt":"offre 3",
|
|
|
|
|
"_offre_3_txt":"field_65d8bc545bf8a",
|
|
|
|
|
"offre_3_image":"41589",
|
|
|
|
|
"_offre_3_image":"field_65d8bc8c5bf8e"
|
|
|
|
|
},
|
|
|
|
|
"tax_input":{"category":[1]},
|
|
|
|
|
"post_excerpt":"accroche",
|
|
|
|
|
"post_content":"presentation",
|
|
|
|
|
"_ajax_linking_nonce":"afc8cd8c69",
|
|
|
|
|
"post_thumbnail":"41584",
|
|
|
|
|
"post_name":"test_hugo",
|
|
|
|
|
"ID":"41586",
|
|
|
|
|
"form_type_confirm":"",
|
|
|
|
|
"post_type":"post",
|
|
|
|
|
"post_date":"2024-03-22 22:59:57"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
post_array: {
|
|
|
|
|
- "post_status":"publish",
|
|
|
|
|
- "field_title":["Nom commercial","Votre site Internet","Dans quelle rubrique devez-vous para\u00eetre ? ","L\\'accroche en t\u00eate de page","Pr\u00e9sentez-vous","Votre logo ","Image principale","Voulez-vous afficher cette offre 1 ?","Dur\u00e9e de l\\'offre","Validit\u00e9 de l\\'offre","Titre","Texte de l\\'offre","Image (facultatif)","Voulez-vous afficher cette offre ?","Dur\u00e9e de l\\'offre","Validit\u00e9 de l\\'offre","Titre","Texte de l\\'offre","Image (facultatif)","Voulez-vous afficher cette offre ?","Dur\u00e9e de l\\'offre","Validit\u00e9 de l\\'offre","Titre","Texte de l\\'offre","Image (facultatif)","slug"],
|
|
|
|
|
- "post_title":"test_hugo",
|
|
|
|
|
- "meta_input":["de_fb_url_partenaire","de_fb_logo_partenaire","de_fb_afficher_offre_1","de_fb_duree_offre_1","de_fb_fin_offre_1","de_fb_offre_1_titre","de_fb_offre_1_txt","de_fb_offre_1_image","de_fb_afficher_offre_2","de_fb_duree_offre_2","de_fb_fin_offre_2","de_fb_offre_2_titre","de_fb_offre_2_txt","de_fb_offre_2_image","de_fb_afficher_offre_3","de_fb_duree_offre_3","de_fb_fin_offre_3","de_fb_offre_3_titre","de_fb_offre_3_txt","de_fb_offre_3_image"],
|
|
|
|
|
-"url_partenaire":"",
|
|
|
|
|
- "tax_input":["de_fb_category"],
|
|
|
|
|
"category":"autres",
|
|
|
|
|
- "post_excerpt":"accroche",
|
|
|
|
|
- "post_content":"presentation",
|
|
|
|
|
- "_ajax_linking_nonce":"afc8cd8c69",
|
|
|
|
|
-"logo_partenaire":"41585",
|
|
|
|
|
- "post_thumbnail":"41584",
|
|
|
|
|
-"afficher_offre_1":"Masquer",
|
|
|
|
|
-"offre_1_image":"41587",
|
|
|
|
|
-"afficher_offre_2":"Afficher",
|
|
|
|
|
-"duree_offre_2":"Permanente",
|
|
|
|
|
-"offre_2_titre":"titre 2",
|
|
|
|
|
-"offre_2_txt":"offre 2",
|
|
|
|
|
-"offre_2_image":"41588",
|
|
|
|
|
-"afficher_offre_3":"Afficher",
|
|
|
|
|
-"duree_offre_3":"Permanente",
|
|
|
|
|
-"offre_3_titre":"titre 3",
|
|
|
|
|
-"offre_3_txt":"offre 3",
|
|
|
|
|
-"offre_3_image":"41589",
|
|
|
|
|
- "post_name":"test_hugo",
|
|
|
|
|
- "ID":"41586",
|
|
|
|
|
- "form_type_confirm":""
|
|
|
|
|
}
|
|
|
|
|
form_type: "post"
|
|
|
|
|
- BEFORE INSERT :
|
|
|
|
|
form_id: "crea_partenaire"
|
|
|
|
|
post_array: {
|
|
|
|
|
- "post_status":"publish",
|
|
|
|
|
- "field_title":["Nom commercial","Votre site Internet","Dans quelle rubrique devez-vous para\u00eetre ? ","L\\'accroche en t\u00eate de page","Pr\u00e9sentez-vous","Votre logo ","Image principale","Voulez-vous afficher cette offre 1 ?","Dur\u00e9e de l\\'offre","Validit\u00e9 de l\\'offre","Titre","Texte de l\\'offre","Image (facultatif)","Voulez-vous afficher cette offre ?","Dur\u00e9e de l\\'offre","Validit\u00e9 de l\\'offre","Titre","Texte de l\\'offre","Image (facultatif)","Voulez-vous afficher cette offre ?","Dur\u00e9e de l\\'offre","Validit\u00e9 de l\\'offre","Titre","Texte de l\\'offre","Image (facultatif)","slug"],
|
|
|
|
|
- "post_title":"test_hugo",
|
|
|
|
|
- "meta_input":{
|
|
|
|
|
- "url_partenaire":"", "_url_partenaire":"field_65cb83096d020",
|
|
|
|
|
- "logo_partenaire":"41585", "_logo_partenaire":"field_65cb79150ac4f",
|
|
|
|
|
- "afficher_offre_1":"Masquer", "_afficher_offre_1":"field_65d8cf09395a5",
|
|
|
|
|
o "duree_offre_1":[],
|
|
|
|
|
o "fin_offre_1":[],
|
|
|
|
|
o "offre_1_titre":[],
|
|
|
|
|
o "offre_1_txt":[],
|
|
|
|
|
- "offre_1_image":"41587", "_offre_1_image":"field_65d8bc5d5bf8b",
|
|
|
|
|
- "afficher_offre_2":"Afficher", "_afficher_offre_2":"field_65e20fb8785ba",
|
|
|
|
|
- "duree_offre_2":"Permanente", "_duree_offre_2":"field_65f3fc577fec4",
|
|
|
|
|
o "fin_offre_2":[],
|
|
|
|
|
- "offre_2_titre":"titre 2", "_offre_2_titre":"field_65d8bc201740b",
|
|
|
|
|
- "offre_2_txt":"offre 2", "_offre_2_txt":"field_65d8bc4c5bf89",
|
|
|
|
|
- "offre_2_image":"41588", "_offre_2_image":"field_65d8bc6e5bf8c",
|
|
|
|
|
- "afficher_offre_3":"Afficher", "_afficher_offre_3":"field_65d8cf48395a6",
|
|
|
|
|
- "duree_offre_3":"Permanente", "_duree_offre_3":"field_65f3ff78c7ffd",
|
|
|
|
|
o "fin_offre_3":[],
|
|
|
|
|
- "offre_3_titre":"titre 3", "_offre_3_titre":"field_65d8bc2e644ab",
|
|
|
|
|
- "offre_3_txt":"offre 3", "_offre_3_txt":"field_65d8bc545bf8a",
|
|
|
|
|
- "offre_3_image":"41589", "_offre_3_image":"field_65d8bc8c5bf8e"
|
|
|
|
|
},
|
|
|
|
|
- "tax_input":{"category":[1]},
|
|
|
|
|
- "post_excerpt":"accroche",
|
|
|
|
|
- "post_content":"presentation",
|
|
|
|
|
- "_ajax_linking_nonce":"afc8cd8c69",
|
|
|
|
|
- "post_thumbnail":"41584",
|
|
|
|
|
- "post_name":"test_hugo",
|
|
|
|
|
- "ID":"41586",
|
|
|
|
|
- "form_type_confirm":"",
|
|
|
|
|
+ "post_type":"post",
|
|
|
|
|
+ "post_date":"2024-03-22 22:59:57"
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//function partner_form_redirection_CIPF($form_id, $submit_result, $redirect_url_after_submission) {
|
|
|
|
|
// error_log("---in partner_form_redirection_CIPF");
|
|
|
|
|
// error_log("form_id");
|
|
|
|
|
// error_log(json_encode($form_id));
|
|
|
|
|
// error_log("submit_result");
|
|
|
|
|
// error_log(json_encode($submit_result));
|
|
|
|
|
// error_log("redirect_url_after_submission");
|
|
|
|
|
// error_log(json_encode($redirect_url_after_submission));
|
|
|
|
|
//}
|
|
|
|
|
//do_action('df_before_redirect', 'partner_form_redirection_CIPF');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|