• Since WP 4.4. using add_shortcode in CF7 does not work anymore. It runs fine with WP 4.3. It’s function i.e. is to prefill an emailaddress in a booking form.

    The CF7-form contains this:
    <span class=”cf7_boekform_lbl”>Emailadres</span>[dynamictext* vhv_email 30/35 “vhv_emailprefill=””]

    The booking-page contains this:
    function getEmailAdres( $atts ) { return gEmailAdres; }
    add_shortcode( ‘vhv_emailprefill’, ‘getEmailAdres’ );

    (var gEmailAdres contains an emailaddress).

    Does anyone experience the same and/or has a glue how to solve this?
    Does WP 4.4 require some additional action?

    Thanks in advance,
    Rudolph Smits, Netherlands

    PS de-activating other plugin’s one by one did not help.

Viewing 1 replies (of 1 total)
  • Thread Starter Rudolph Smits

    (@rudolph-smits)

    Solved, finally, after trying a thousand things.

    This is wrong: Emailasdress [dynamictext* vhv_email 30/35 “vhv_emailprefill=””]

    Delete the equal-sign and two single quots at the end and it works again. Apparently this became critical in WP 4.4.

Viewing 1 replies (of 1 total)
  • The topic ‘add_shortcode in CF7 not working with WP 4.4’ is closed to new replies.