Skip to content

Instantly share code, notes, and snippets.

@gorobey
Forked from jayllellis/custom-action-url.php
Created July 5, 2017 08:45
Show Gist options
  • Save gorobey/a219b5b21f6451a0c1b4b5372ead1210 to your computer and use it in GitHub Desktop.
Save gorobey/a219b5b21f6451a0c1b4b5372ead1210 to your computer and use it in GitHub Desktop.
Custom Contact Form 7 action URL
<?php
// Place this in your functions.php file
add_filter('wpcf7_form_action_url', 'wpcf7_custom_form_action_url');
function wpcf7_custom_form_action_url(){
return 'send.php';// replace this with the new action url (excluding the 'http://')
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment