fstuurman
Forum Replies Created
-
Forum: Plugins
In reply to: [Download Manager] WPDM Last Update Break My DownloadsI getr following error with version 3.0.98:
Een fout van het type E_PARSE werd veroorzaakt op regelnummer 299 van het bestand public_html/wp-content/plugins/download-manager/libs/class.CategoryHandler.php. Foutmelding: syntax error, unexpected ‘::’ (T_PAAMAYIM_NEKUDOTAYIM)Sorry for the dutch
Kind regards FredForum: Plugins
In reply to: [Advanced Contact form 7 DB] Merge 2 fields before storing to DBSearched the plugin code and found out that the name of the filter is wrong,
should be vsz_cf7_posted_data
so code will be:add_filter( ‘vsz_cf7_posted_data’, function ( array $form_data ): array {
$form_data[‘Adres’] = $form_data[‘Adres’] . ‘ ‘ . $form_data[‘Huisnummer’] ;
$form_data[‘Huisnummer’] = ‘ ‘;
return $form_data;
} );This works like a charm.Kind regards
Fred StuurmanForum: Plugins
In reply to: [Advanced Contact form 7 DB] Merge 2 fields before storing to DBVsourz,
Thanks for the reply, I have tried both ways , filling huisnummer with both values and filling Adres with both.
Also clearing is not done when coded, so:
add_filter( ‘cfdb7_before_save_data’, function ( array $form_data ): array {
$form_data[‘Huisnummer’] = ‘ ‘;
return $form_data;
} );
should empty the huisnummer field, but it is not, what I am missing.Kind regards
Fred Stuurman