Check if user_mail is set
-
Hi there,
I’ve written a little script that adds a “fallback” Contact 7 form automatically to a specific post type (see script below). To avoid that this form is display with an empty user_email parameter I would like to add a check if a value for user_mail has been set or not.
How could this been done?
Thanks and best regards
Carstenadd_action('genesis_before_comments','jyyAddContactForm'); function jyyAddContactForm(){ global $post; if (has_shortcode($post->post_content, 'contact-form-7') && is_singular('event')){ // nothing } else { echo(do_shortcode('[contact-form-7 id="1085" title="Kontaktformular mit Dynamic Email Recipient"]')); } }
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Check if user_mail is set’ is closed to new replies.