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
- Adding php script to WordPress [closed]
- Remove category from pagination
- Function Display article [closed]
- How to load previous or next attachment with jquery ?
- Merge wp_get_post_terms
- Force CSV download with template_redirect
- Exclude Post ID from Array Specified in Custom Field
- Hide button based on PHP result
- Undefined variable notice [closed]
- How to display inputted data in Ajax without button or click event
- How do I empty a specific meta_value for all users in PHP
- Import users and custom user meta from csv
- Gutenberg – render_callback does not pass ToggleControl value on frontend
- Remove post image caption from post_excerpt();
- Prevent users from display default wordpress login form
- Detecting charcater encoding for wp-config.php file
- How to customize content-video.php file in wordpress as is in html file?
- Create custom table for wordpress custom registration flow
- Search results always returns “No results” no matter what
- Suddenly sessions and header location not working
- Custom Navigation Bar JSON Syntax Error in JSON at Position 0
- bloginfo url in javascript
- Getting invalid user ID error when creating a new user with wp_insert_user
- How to extract URLs from wordpress taxonomies
- Warning: Illegal string offset ‘post’ and ‘page’
- Remove content links (internal and external), but exclude post at specific categories
- Best way to delete/don’t load a .php file?
- Get collected weight ordered per shipment method
- orderby property of query on pre_get_posts returns incorrect value
- Custom form that stores data in mysql database
- How to get data (not value or name) from radio options to POST to database
- Adding commas between post titles on an archive page?
- Authenticate + Authorize WP REST API request before built-in WP JSON Schema Payload Validation?
- can someone help me what’s wrong with this code?
- Make a variable global and use it for inline script
- How to enable REST API on custom post type without Gutenberg?
- Creating a table via dbDelta
- wpbd to connect to a VPS mysql database
- How call WordPress shortcode inside function file
- Retrieve data from external database and insert back in
- strict custom php script on specific product category [closed]
- How to get the ID of the WordPress user
- Fetching only specific value from php file
- AJAX returning blank result
- Add adjacent post function inside custom recent post function
- How to exclude first 2 posts from a specific category for a custom post type archive page
- Customize Notification Email Sent to New User When Manually Created by Site Administrator
- Woocommerce product variations getting created without attribute values selected
- Guests comment form – prevent duplicate email addresses
- Adding Microsoft Teams Incoming Webhook to WordPress, Problem with Rest Route?
- Custom CPT – Programmatically create categories to assign CPT when a new one is created
- Fatal Error: Uncaught ArgumentCountError: Too few arguments to function – on logout of wordpress dashboard
- Why is my custom email notification after purchase not sending?
- Error when loading Dashboard
- How do I exclude the current post from the upcoming post query
- using AJAX [object Object]
- PHP how to submit array elements to database
- Ajax – how to use XMLHttpRequest in wordpress
- Running a long script in PHP
- WordPress wp_set_object_terms does not assign product to custom taxonomy
- PHP Add products to cart with WooCommerce Addons
- Adding caption to all images inside an article
- WordPress Register Block with metadata