8 votes
Accepted

How can I send to multiple Contact Form 7 recipients based on form input?

No need to write any code, Contact form 7 has features of Additional Headers in the Mail section. In that you just need to write the email's header inside the Additional headers textbox in Mail(Second ...
GKS's user avatar
  • 1,306
7 votes

How to get current url in contact form 7

See this example on how to create and parse the shortcode in the contact form 7 to use it add [current_url] add_action( 'wpcf7_init', 'wpcf7_add_form_tag_current_url' ); function ...
Shibi's user avatar
  • 1,813
7 votes

Removing "Website" Field from the contact info

I resolved the problem with ob_ functions and DOMDocument. It's better than jQuery or CSS for protecting the form. I use this kind of solution every time when I can't access a part of HTML content ...
Jérome Obbiet's user avatar
7 votes

How to get current url in contact form 7

according to Contact Form 7 documentation you need this: [_url] — This tag is replaced by the URL of the page in which the contact form is placed. reference: https://contactform7.com/special-mail-tags/...
Geza Gog's user avatar
  • 151
4 votes

How to get current url in contact form 7

You can use cf7 hidden field shortcodes + get parameters: https://contactform7.com/hidden-field/ https://contactform7.com/getting-default-values-from-the-context/ In the mail form I use such ...
Iggy's user avatar
  • 381
2 votes

Contact form sender email

Sending an email from an address you don't own will mean you run into problems with countermeasures again email spoofing (e.g SPF), as you're effectively impersonating the user's email address to send ...
cwarcoder's user avatar
2 votes

How to get current url in contact form 7

the form submit already send the container post then you just need to retrive it in and put it in the e-mail. For that, try this code : add_filter("wpcf7_posted_data", function ($wpcf7_posted_data) {...
mmm's user avatar
  • 3,694
2 votes
Accepted

Is Postfix required for WordPress contact forms in general?

You don't need Postfix if you use an SMTP plugin like, for example, WP Mail SMTP. Such kind of plugins can send email from your Google account via SMTP. I have just checked it by stopping postfix and ...
KAGG Design's user avatar
  • 1,842
2 votes

How can I add a link to a WPForms "contact us" form to the main menu?

I imagine you'll need to create a "form" page and embed the form using a shortcode or block: There are two different ways to embed your forms to a WordPress page: by using the built-in ...
Q Studio's user avatar
  • 2,516
2 votes

Saving contact form 7 data into custom Table

CF7 has an useful hook wpcf7_submit that can be used to process the data sent: add_action("wpcf7_submit", "SE_379325_forward_cf7", 10, 2); function SE_379325_forward_cf7($form, $...
Andrea Somovigo's user avatar
2 votes

How to change the contact info at the bottom of my theme

This theme downloads 2 folders with name kyma and spina. so, go to kyma\functions\customize where you get contact-widgets.php and change contact information there.
DHL17's user avatar
  • 631
1 vote

Email address used by website but I do not know where

Email settings are usually somewhere in the database. You'll likely find it in a table that gives you a good clue about where the setting can be changed. It may be wise not to just search-and-replace ...
WebElaine's user avatar
  • 9,400
1 vote

How to change the contact info at the bottom of my theme

Spina is a child theme of Kyma theme. And what you are seeing is the 'footer sidebar' with several widgets defined in the footer.php in Kyma theme. But, they are displayed only if you don't add ...
Milan Petrovic's user avatar
1 vote
Accepted

advanced custom fields and contact form 7

You almost got it. You should use the do_shortcode function. <?php echo do_shortcode(get_field('shortcode')); ?>
Buttered_Toast's user avatar
1 vote
Accepted

Get the name of all the Items of cart in current session

Here shows only the loop parts of the code Since I don't know what is the data structure of $session_data. I suppose $session_data[$key] return a product name first in order to create the example. ...
西門 正 Code Guy's user avatar
1 vote

How to Send Confirmation Emails to Users after Form Submission?

You need to take a look at the hooks of the Contact Form 7 plugin website. Browse the documentation for the actions you need. Have a look at this topic: how-to-hook-into-contact-form-7-before-send ...
user3135691's user avatar
1 vote

Contact Form 7 If Condition

Yes, you should be able access the form fields and field values with event.detail.inputs in addEventListener on wpcf7mailsent. You can then use the field values in the conditional statements and add ...
Antti Koskinen's user avatar
1 vote
Accepted

Display Freebie Page Content only if Referrer is from Form Page

If you want something that's simple, but not highly secure, a field you pass from the form to the download page is fairly common. Anyone with that field could get to your download page, but most ...
MikeNGarrett's user avatar
  • 2,661
1 vote

form action wordpress and php

If you're using WordPress, you shouldn't send POST requests directly to current URL. There is an API to process such requests. So how should that be done? First of all, you should send request to ...
Krzysiek Dróżdż's user avatar
1 vote
Accepted

Download any file after submitting a form

You can use "actions". More info: http://hookr.io/actions/wpcf7_mail_sent/ Put this code in your functions.php: function action_wpcf7_mail_sent( $contact_form ) { // here your file redirect ...
Tommy89's user avatar
  • 36
1 vote

WordPress Emails & Contact Forms

Your could debug php mailer in WP using franz's wpmail_exceptions plugin https://gist.github.com/franz-josef-kaiser/5840282 Place the first file in /wp-content/mu-plugins/ and make sure you've set ...
Z. Zlatev's user avatar
  • 1,149
1 vote
Accepted

Jquery contact form to send mail to admin

Without php you can't send an email. So as per your reference you have to use ajax and php. In wordpress ajax is little bit different as compared to normal ajax. You can check the link for how to use ...
MagniGeeks Technologies's user avatar
1 vote
Accepted

After upgrading to PHP 7.0 my contact form outputs error

Wordpress has a built in function for validating emails and I would advise you use that. So you can replace your preg_match with the wordpress is_email else if (!preg_match("/^[A-Z0-9.%-]+@[A-Z0-9.%-...
Tunji's user avatar
  • 2,921
1 vote

Removing "Website" Field from the contact info

Expanding on @birgire's answer, I wrote this into an array so it's a little easier to read: function awb_remove_user_profile_fields_with_css() { //Hide unwanted fields in the user profile $...
Kenny's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible