wpcf7 send on an API url code example
Example: post data to another page contact form 7
add_filter('wpcf7_form_action_url', 'wpcf7_custom_form_action_url');
function wpcf7_custom_form_action_url(){
return 'www.myposthandler.com';
}
add_filter('wpcf7_form_action_url', 'wpcf7_custom_form_action_url');
function wpcf7_custom_form_action_url(){
return 'www.myposthandler.com';
}