WordPress.org

Support

Support » Plugins and Hacks » Contact Form 7 » wpcf7_mail_sent infinite loop

wpcf7_mail_sent infinite loop

Viewing 1 replies (of 1 total)
  • I am having the same issue and cannot figure it out. I have tried the following two snippets of code in functions.php and the email sends but the page never redirects. It just stays with the little spinning circle next to the submit button. If anyone has figured this out please let me know as this is driving me nuts.

    add_action('wpcf7_mail_sent', 'wpcf7_redirect_on_submit');
    function wpcf7_redirect_on_submit($wpcf7)
    {
    		wp_redirect( 'http://www.google.com' );
    		exit;
    }
    add_action('wpcf7_mail_sent', 'wpcf7_redirect_on_submit');
    function wpcf7_redirect_on_submit($wpcf7)
    {
    		header( 'Location: http://www.google.com' );
    		exit;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘wpcf7_mail_sent infinite loop’ is closed to new replies.
Skip to toolbar