Last active
August 3, 2021 08:34
-
-
Save jayllellis/e12b1ca324b22fd768b6bb6fc1e82584 to your computer and use it in GitHub Desktop.
Custom Contact Form 7 action URL
This file contains 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 | |
// 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
how to change form method from POST to GET , pls share that code too