Contact Form 7 Mail Conditions
Contact Form 7 Mail Conditions
Description
Note: Complex if statements are not yet supported. Please contact me if you need this.
Before the WP Contact Form 7 Plugin sents a mail this plugin becomes active. It looks for if-conditions written in shortcode-style and evaluates if the condition variable is empty or not. Depending on that the block between [if] and [/if] is inserted into the mail or not.
Example:
[if phone]Phone number: [phone][/if]
Installation
- Copy the contact-form-7-mail-conditionals into your plugins folder
- Activate the plugin
Reviews
Doesn't work. Warning given in server log
By silverfactory on September 3, 2016
It doesn't work with WP 4.3.1 and/or CF7 4.3.1.
[if][/if] is not parsed at all. Error log contains the following message after sending mail:
PHP Warning: Parameter 1 to Contact_Form_7_Mail_Conditions::before_send_mail() expected to be a reference, value given in /usr/local/***removed***/httpdocs/wp-includes/plugin.php on line 503