# Redirect the Default Registration Page

> Sends visitors who open wp-login.php?action=register to your own registration page.

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

## Code

```php
add_action( 'login_form_register', function () {
    wp_safe_redirect( home_url( '/register/' ) );
    exit;
} );
```

## Notes

Change /register/ to the path of your registration page.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Redirect the Default Registration Page" 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/
