I think home url not found. And make sure this condition true. if ( $sendStatus ){ }
Please try like this.
<?php wp_redirect( home_url('/thank-you/', 301) ); exit; ?>
Related Posts:
- WordPress “phpmailer_init” not working for me
- Should I use wp_mail or PHP’s mail? [duplicate]
- WordPress refuses to send mail, “…your host may have disabled the mail() function”
- How do I override the Message-ID header of wp_mail function?
- WordPress new user / forgot password emails are broken
- wp_mail function timing out
- Why is my get_post_meta always empty
- Mail not sent when I set HTML headers
- Error when requesting password reset email – wp authentication
- Processing a subscription form with POST method?
- Different Webhost and using Google Mail server: Is there a better way than SMTP?
- wp_mail not sending
- Why wp_mail() function isn’t sending any emails and displaying ‘0’ in Chrome ‘Network’ response
- Validate emails in array using foreach
- PHP 8, AJAX mail form to function.php doesn’t work
- How to retrieve the sender email with wp_mail()?
- wp_mail file attachment not being placed in upload folder?
- Website needs to be opened for wp_mail to work
- Notify users only on post publish
- Sending a custom form data in email through WP Mail Function
- Pass Variables or Variable Place-Holder from Editor to PHP
- Pass return-path additional parameter in wp_mail
- Send notification email to admin for every new post published
- Different SMTP based on domain
- Get page permalink in contact form
- comment_post (if comment is approved OR $comment_approved === 1) not working?
- Running SMTP Conditionally
- Including user data in “new user notification email”
- Cron not sending wp-mail()
- Email always ends up in spam
- Premature end of script headers: wp-mail.php?
- Adding action item to admin users table and sending email
- Wp_mail doesnt work
- get_post_meta is always empty when I use wp_mail
- How to show value from ACF plugin field in e-mail?
- wp_mail vs mail functions and header arrays
- Word press – JSPDF – Sending PDF as attachment from wp_mail – Special characters
- wp_mail – send emails after 24 hours from users registration
- Send emails to individual subscribers when CPT post is deleted (trashed)
- Send email with a PDF embedded
- Edit password change email text or disable it
- Send summary email from a form with wp_mail
- Send registration email to all admins
- WooCommerce Orders pagination
- Problem with function.php.. like
- Simple Probléme in wordpress
- Custom Registration and Login Forms with reCaptcha 2 Validation
- image dimension in php code args
- How to add pagination for wordpress home page
- Import and use a variable in additional settings of Contact Form 7 [closed]
- which php or css file has generated an inline style in WordPress that overwrites my css
- Change Checkout “Place Order” text if cart has a specific product
- php inside HTML via shortcode? [closed]
- How to hide Ads From Certain Categories?
- Using Excel formula in PHP. Use ^ symbol [closed]
- Change body_class() PAGE to HOME
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!
- PHP warning Invalid argument supplied for foreach() on custom page template
- how to put shortcode to the top of the page – theme 2014
- display php code in header using wp_head()
- foreach all the post
- Pagination 404 on my index.php
- Call custom posttype outside the functions.php
- How to avoid timeout waiting for output from CGI script?
- Passing javascript variable to php file
- Jquery autosave text area after typing
- How to list all the posts in a personalized page? WordPress
- How do I update product shipping using PHP in WooCommerce?
- Parse error: syntax error, unexpected ‘else’ (T_ELSE) [closed]
- Custom archives page by month and year – nesting problem
- Code working in functions.php but not pluign for gavity forms
- Product Category Page in Full Width
- How can I edit the WooCommerce Mini DropDown Cart to read as follows
- get_avatar from user id
- Change an option string to a function [closed]
- Load slideshow.css file only if Slideshow is checked / on
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- Customise Author Page?
- echo vs output variable [closed]
- Excerpt all post content Content Same Size without word cutting off
- Display Post Titles on top of the_post_thumbnail()
- Error in php code
- How to create categories out of a list of words?
- How can i give a download link to the thumbnail or featured image
- add if statement to the featured image
- WordPress White Screen Error
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- How to handle parent and child pages?
- How can I prevent wordpress from sending emails
- Get Products within Current Product Category
- Category slug inside another php code
- Options.php loop won’t show!
- Wrapping the_content() in Schema articleBody tag? [closed]
- Infinite Scroll Plugin: How to first show 6 posts and then 2 posts thereafter with Infinite Scroll Plugin?
- Millennial Media PHP Setup ( Code Integration )
- Insert into db with foreach problem
- Open WordPress Page from selected option dropdown
- WPMU – How to echo only one URL
- Link a lightbox thumbnail to a post instead of opening the lightbox
- Null value given when confirming email’s