• I needed time to figure out how to manipulate the php code to make it works as I wished. The author provides several explaination. For me it was really easy understand the “if conditions”, ’cause I studied TurboPascal in high school. But some other lines were certainly not a piece of cake.

    Nowhere is written that in: add_filter( ‘wpcf7_validate_email*’, ‘custom_email_confirmation_validation_filter’, 20, 2 );
    or in: function custom_email_confirmation_validation_filter( $result, $tag ) {

    custom_email_confirmation_validation_filter cannot be fully adapt but only the “email_confirmation” part can be changed.

    The line: $tag = new WPCF7_FormTag( $tag );
    is not explained. I know that “=” is used to attribuite to the left part the value on the right side, but what is new WPCF7_FormTag( $tag ) there for??

    However, now it works great! I thank the author for this incredible plugin! =)

    ———

    Inizialmente un casino con i codici php, per cercare di capirli. Le spiegazioni ci sono ma non così dettagliate. Per esempio non è scritto da nessuna parte che in:
    add_filter( ‘wpcf7_validate_email*’, ‘custom_email_confirmation_validation_filter’, 20, 2 );
    o anche in:
    function custom_email_confirmation_validation_filter( $result, $tag ) {

    solo una parte della stringa “custom_email_confirmation_validation_filter” può essere cambiata, cioè “email_confirmation”, il resto deve rimanere com’è.

    O anche nel comando: $tag = new WPCF7_FormTag( $tag );
    che cavolo è “new WPCF7_FormTag( $tag )”??
    nessuna spiegazione.

    So un po’ di programmazione perchè ho fatto TurboPascal alle superiori, però php non lo conosco. Con 2 righe in più di spiegazione, avrei perso molto, ma mooolto, meno tempo.

    Comunque adesso sono riuscita a inserire le funzioni che mi servivano, ed ho ottenuto quello di cui avevo bisogno. Rigranzio l’autore del plugin! =)

  • The topic ‘Some initial issues manipulating the php code, but now it works great!’ is closed to new replies.