# Friendlier Messages on the Registration Screens

> Explains what happens next above the WordPress registration form and replaces the terse "Registration complete" notice with clearer instructions about the confirmation email.

- Type: PHP
- Runs: Run everywhere
- Category: [Forms](https://wpide.com/library/category/forms/)
- Tags: registration, login, messages
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/form-registration-screen-messages/

## Code

```php
$wpide_register_intro = 'Create your free account. We will email you a link to set your password, so use an address you can access right now.';
$wpide_register_done  = 'Almost there! Check your inbox for an email with a link to set your password. It can take a few minutes; look in your spam folder too.';

add_filter( 'login_message', function ( $message ) use ( $wpide_register_intro ) {
    $action = isset( $_REQUEST['action'] ) ? sanitize_key( $_REQUEST['action'] ) : '';

    return 'register' === $action ? '<p class="message register">' . esc_html( $wpide_register_intro ) . '</p>' : $message;
} );

add_filter( 'wp_login_errors', function ( $errors ) use ( $wpide_register_done ) {
    if ( $errors instanceof WP_Error && isset( $_GET['checkemail'] ) && 'registered' === $_GET['checkemail'] && $errors->get_error_code() ) {
        $errors->remove( 'registered' );
        $errors->add( 'registered', esc_html( $wpide_register_done ), 'message' );
    }

    return $errors;
} );
```

## Notes

Edit both texts at the top; they appear on wp-login.php?action=register and right after registering.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Friendlier Messages on the Registration Screens" 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/
