Last active
May 8, 2018 15:54
-
-
Save smartdeal/57b1af2f667a2468ba05e15e8e376b24 to your computer and use it in GitHub Desktop.
Contact form 7 - get fields in function.php #Wordpress #WP_CF7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$wpcf7 = WPCF7_ContactForm::get_current(); | |
$submission = WPCF7_Submission::get_instance(); | |
$data = $submission->get_posted_data(); | |
$form_type = $data['form-type']; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment