# Redirect New Users After Registration

> Sends people to a page of your choice (for example a welcome page) after they register through wp-login.php.

- Type: PHP
- Runs: Run everywhere
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: users, registration, redirect
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/redirect-after-registration/

## Code

```php
add_filter( 'registration_redirect', function () {
    return home_url( '/welcome/' );
} );
```

## Notes

Change /welcome/ to the path of your page.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Redirect New Users After Registration" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
