Support » Plugin: Contact Form 7 - Campaign Monitor Addon » Missing argument 3 for wpcf7_special_mail_tag()

  • I’ve been having problems with the latest version of WordPress, Contact Form 7 and this plugin, which I’m trying to work through.

    One problem, which isn’t particularly clear, is a PHP warning thrown by line 254 of cf7-campaignmonitor.php. The error is:
    PHP Warning: Missing argument 3 for wpcf7_special_mail_tag() in /path/to/root/dir/wp-content/plugins/contact-form-7/modules/special-mail-tags.php on line 8

    The fix is to replace line 254:
    if ( $special = apply_filters( 'wpcf7_special_mail_tags', '', $matches[1] ) )
    With:
    if ( $special = apply_filters( 'wpcf7_special_mail_tags', '', $matches[1], '' ) )

    (Notice the third argument to the function call)

    I hope that this helps others.

    https://wordpress.org/plugins/contact-form-7-campaignmonitor-addon/

  • The topic ‘Missing argument 3 for wpcf7_special_mail_tag()’ is closed to new replies.