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 registration email to all admins
- MySQL “Or” Condition
- What is the significance of the number, 32767?
- PHP – how to create a newline character?
- How to register images uploaded via FTP in media library?
- Archive listing of posts by publish year (multiple years)
- jQuery functions only work on homepage
- How to change post count in wordpress loop?
- How can I loop into two different DIVS without repeating the DIVs
- File upload, uploads only file name
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- Get_the_author doesn’t return author name
- Changing Woocommerce flat rate every nth number of items
- HTML tags in bloginfo description
- WP mail sent to MS Exchange recipients = occasional email corruption?
- Why my filterable portfolio page work not perfectly between slug button and slug output WORDRPESS?
- PHP variable = get_the_post_thumbnail_url outputting without slashes
- WordPress every page is 404 not found including admin resources
- Saving zero in meta box
- How to edit php code in WordPress Post file?
- site_url and $current_user producing undesired results
- Count posts on multisite with blog id
- how to make jpg downdable in wordpress?
- Adding string before php [closed]
- Moving wordpress site from localhost to live server using GoDaddy cPanel
- Woocommerce display one random product via php
- Help with WordPress function inside a shortcode
- Wpdb->insert() doesn’t insert new row after the last one
- InnerBlocks with allowedBlocks not working with acf_register_block
- PHP -> SQL Query with Summing
- Calling PHP Scripts in Ajax that are in PHP Snippets
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- Alter Woocommerce product archive structure
- How to style injected code in header section?
- Allow user to Upload image and manipulate it on the frontend
- Echo array value
- How to break up php code to avoid echo
- Executing php on button press
- random post redirect in wordpress with a .php file
- “Edit comment” window add view all comments on post, how?
- Use PHP Class in WordPress functions
- How to put 2 php codes in functions.php without site crashing
- How to remove the replace the product image by video on shop page conditionally
- Having trouble with customizing blog posts on the home page
- View tag description on page
- Add a leading zero to pagination
- AJAX Not Working With WordPress Database properly
- Pagination for div’s
- Masonry layout within the loop
- 500 (Internal Server Error) of external php file
- Adding theme support for a custom header image
- Dynamic Post Type Variable echo as string?
- WordPress – show all posts + ones with specific tag
- Catchable fatal error in appcloud free theme by Tokokoo
- is there away to hide php code in wordpress not to show in PAGES
- Shortcode always at top of content
- Send a custom notification to customer on WooCommerce cancelled order status
- Manipulating the allowed inner blocks of a core-gutenberg-block?
- Get a list of folders inside uploads directory
- How to show correct td of table tags in wp_query loop
- How to get the content of a dynamic block in PHP