How can i handle custom response?
-
Hello,
I just manage to modify the action url by
add_filter('wpcf7_form_action_url', 'wpcf7_custom_form_action_url2'); function wpcf7_custom_form_action_url2($url){ global $post, $wpcf7; if ($post->ID === 162) { // stop email being sent $wpcf7->skip_mail = 1; return '/tickets/get.php'; } else { return $url; } }
and get.php just outputs the variables
print_r($_REQUEST);
and i seeArray ( [_wpcf7] => 159 [_wpcf7_version] => 3.7.1 [_wpcf7_locale] => en_US [_wpcf7_unit_tag] => wpcf7-f159-p162-o1 [_wpnonce] => 270977c76b [your-name] => asdf [your-subject] => sd [your-message] => adsf [_wpcf7_is_ajax_call] => 1 )
but i like to get this output in place of the CF7 form is this possible?
How does wpcf7 handle the response?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How can i handle custom response?’ is closed to new replies.