Redirect to custom URL after registering from a page with registration form
Instead of using home_url, header(location) you can use wp_redirect() function __my_registration_redirect(){ wp_redirect( ‘/my-page’ ); exit; } add_filter( ‘registration_redirect’, ‘__my_registration_redirect’ ); This might be helpfull