I would use the registration_redirect
filter. This allows you to set where the user is sent to, but leaves WordPress to perform the redirect (after everything has successfully processed).
function wpse_139267_registration_redirect( $url ) {
return site_url( 'thank-you' );
}
add_filter( 'registration_redirect', 'wpse_139267_registration_redirect' );
Related Posts:
- Post-Registration, post-meta hook?
- How can I do customizations on login, registration and password recovery forms?
- update post meta using user_register hook not working
- How to hook into user registration process Before user registers
- How to modify an add_action() inside a loop of core function
- How to increase password requirements for registration [closed]
- Can user_register output the password?
- register_activation_hook not updating
- Custom Front End Registration – How Does the Key work in the Password Set Request?
- How to change the default mail when admin approuved an user?
- hooks for automatic approve user registration according to data in custom fields
- What hooks do I need to hook into to capture ever wp_user creation/change?
- ‘user_register’ hook – need to distinguish if created from wp admin panel
- add_action doesn’t work for my function
- Updating user meta data from external link, user not logged in
- Which hook should I use for this scenario regarding the registration process and account/profile update?
- Problem in register activation hook and Copying folder
- Does wp_login hook fire on user registration?
- How to hook update_post_meta and delete_post_meta?
- Are there any hooks that alter the 404 logic?
- Use wp init hook to call other hooks?
- Add_action to wp_head via functions.php
- Hook that fires when admin setting is saved
- What is the difference between update_post_meta and update_postmeta hooks?
- How to remove action hook done in a plugin from functions.php in my theme?
- Hooks for trashing, deleting, saving, restoring custom post type
- Implementing advanced add_* function wrappers
- My add_action (wp_footer, ‘method’) is not calling?
- Hook into wp_head(); in a plugin
- Use $query->set multiple times with pre_get_posts?
- How can I hook into the post editor title field in order to change the HTML?
- WordPress v5.0.3 Gutenberg & JS error “Uncaught SyntaxError: missing ) after argument list”
- Can’t get ID of post that relates to the comment
- Searching hook to set cookies before and avoid “headers already sent”
- Hook before inserting user into database [duplicate]
- wp_redirect() not working on form submission with init hook
- WooCommerce – Overwrite action hook [closed]
- Admin Hook at the Login Page
- Which Hook? Hide attachments from specific post types in media library
- Custom action on login and “remember me”
- How to prevent double execution of do_action statements
- When is the {$new_status}_{$post->post_type} transition hook fired?
- TinyMCE as comment editor – encoding issues
- Hook to change Logout url
- Method to find a hook
- Understanding WP
- Get post or page id early
- Looking for a hook for post.php
- Executing Arbitrary Code at a Specific URL without Creating a Post or Page?
- Update a costume wp_usermeta key back to 0 every 24hours (time can be specified as needed)
- customize_controls_enqueue_scripts doesn’t fire from within my plugin
- Save User Meta Email Address in Lowercase
- When are wp redirect methods safe to hook?
- WooCommerce single product page quantity description [closed]
- How to cancel the trash action inside wp_trash_post
- wp_insert_post_data hook should be called before updating db but isn’t
- What is the difference between add_action and add_filter [duplicate]
- load-* hook for dashboard
- What conditions must be met in order to upload .zip file to a multisite WordPress installation?
- How to hook code in ?
- wp_enqueue_script before wp_head
- Is it possible to add the_content filter upon login?
- Use an array of page template slugs and $hook
- wp_logout hook never triggered
- add short description under price
- post.php AJAX request not being called when publishing post
- WordPress media library allow uploading fake file
- What hook do I use if I want to update a user profile field when a new user is created?
- How to add custom tab page in backend?
- Add html code in admin page
- Hooking dynamic/variable named hook in all cases
- What hook to add at start of WordPress load
- Knowing if a post is sticky in the ‘save_post’ action. Where do I have to hook?
- How to automatically activate users after registration without activation email?
- How to read and write session data?
- Count when a post of a custom post type is deleted and store it in a theme option
- Can we change the hook firing sequence?
- Intercept loading of a certain page
- Add content in cpt archive page
- Creating custom post on registration in wordpress?
- Display custom user profile fields in wordpress
- profile_update not supplying old data
- Output Redirect Headers on Admin Dashboard Page
- Help hooking into user_register
- add_image_size not working with after_switch_theme
- wordpress hooks
- Check when a setting has been changed
- add extra parameter in default hook in wordpress
- Exclude WooCommerce terminations from YOAST
- set_post_format called after wp_update_post when using bulk edit?
- add hook restricted only to either plugins or themes?
- How to hook watchdog script for existence of a WP page?
- addaction hook cause redirection problem
- Getting all post/page IDs related to a soon-to-be-deleted tag/cat
- Hooking get_pages()
- Fire a hook programmatically
- Transform .wp-video to the native video player of the browser
- How do I override the user’s input when updating a custom post type’s permalink?
- How to add a new link to the default register form’s footer links?
- How to use the password_reset hook to validate new password and display error