<?php
// your code goes here
/* CSV custom - NomEnfant */
add_filter( 'frm_csv_columns', 'change_nom_enfant_column_name', 10, 2 );
function change_nom_enfant_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$nom_enfant_field_id = 253; // Replace 253 with the ID of the "Nom de l'enfant" field
$headings[ $nom_enfant_field_id ] = 'NomEnfant';
}
return $headings;
}
/* CSV custom - PrenomEnfant */
add_filter( 'frm_csv_columns', 'change_prenom_enfant_column_name', 10, 2 );
function change_prenom_enfant_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$prenom_enfant_field_id = 254; // Replace 254 with the ID of the "Prénom de l'enfant" field
$headings[ $prenom_enfant_field_id ] = 'PrenomEnfant';
}
return $headings;
}
/* CSV custom - DDN */
add_filter( 'frm_csv_columns', 'change_ddn_column_name', 10, 2 );
function change_ddn_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$ddn_field_id = 135; // Replace 135 with the ID of the "Date de naissance" field
$headings[ $ddn_field_id ] = 'DDN';
}
return $headings;
}
/* CSV custom - Sejour
add_filter( 'frm_csv_columns', 'change_sejour_enfant_column_name', 10, 2 );
function change_sejour_enfant_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$sejour_enfant_field_id = 208; // Replace 208 with the ID of the "Sejour" field
$headings[ $sejour_enfant_field_id ] = 'SejourEnfant';
}
return $headings;
}*/
/* CSV custom - Sejour enfant */
add_filter( 'frm_csv_columns', 'change_sejour_column_name_enfant', 10, 2 );
function change_sejour_column_name_enfant( $headings, $form_id ) {
if ( $form_id == 10 ) {
$sejour_field_id = 208; // Replace 208 with the ID of the "Sejour" field
$headings[ $sejour_field_id ] = 'Sejour';
}
return $headings;
}
/* CSV custom - Commentaire */
add_filter( 'frm_csv_columns', 'change_commentaire_column_name', 10, 2 );
function change_commentaire_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$commentaire_field_id = 137; // Replace 137 with the ID of the "Commentaire" field
$headings[ $commentaire_field_id ] = 'Commentaire';
}
return $headings;
}
/* CSV custom - Venu */
add_filter( 'frm_csv_columns', 'change_venu_column_name', 10, 2 );
function change_venu_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$venu_field_id = 138; // Remplacez 138 par l'ID du champ "Venu"
$headings[ $venu_field_id ] = 'Venu'; // Remplacez "Venu" par le nom de colonne souhaité
}
return $headings;
}
/* CSV custom - FamilleVenu */
add_filter( 'frm_csv_columns', 'change_famille_column_name', 10, 2 );
function change_famille_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$famille_field_id = 140; // Replace 140 with the ID of the "FamilleVenu" field
$headings[ $famille_field_id ] = 'FamilleVenu';
}
return $headings;
}
/* CSV custom - FamilleRevenir */
add_filter( 'frm_csv_columns', 'change_famille_revenir_column_name', 10, 2 );
function change_famille_revenir_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$famille_revenir_field_id = 141; // Replace 141 with the ID of the "Veut-il revenir dans la même famille ?" field
$headings[ $famille_revenir_field_id ] = 'FamilleRevenir';
}
return $headings;
}
/* CSV custom - Copain */
add_filter( 'frm_csv_columns', 'change_copain_column_name', 10, 2 );
function change_copain_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$copain_field_id = 142; // Replace 142 with the ID of the "Copain" field
$headings[ $copain_field_id ] = 'Copain';
}
return $headings;
}
/* CSV custom - CopainNom */
add_filter( 'frm_csv_columns', 'change_copain_nom_column_name', 10, 2 );
function change_copain_nom_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$copain_nom_field_id = 255; // Replace 255 with the ID of the "Nom de l'enfant qu'il connaît" field
$headings[ $copain_nom_field_id ] = 'CopainNom';
}
return $headings;
}
/* CSV custom - CopainPrenom */
add_filter( 'frm_csv_columns', 'change_copainprenom_column_name', 10, 2 );
function change_copainprenom_column_name( $headings, $form_id ) {
if ( $form_id == 10 ) {
$copainprenom_field_id = 256; // Replace 256 with the ID of the "Prénom de l'enfant qu'il connaît" field
$headings[ $copainprenom_field_id ] = 'CopainPrenom';
}
return $headings;
}