Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I 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 Fred

    Thread Starter fstuurman

    (@fstuurman)

    Searched 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 Stuurman

    Thread Starter fstuurman

    (@fstuurman)

    Vsourz,
    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

Viewing 3 replies - 1 through 3 (of 3 total)