# Stop Login Details Emails to New Users

> Prevents WordPress from emailing new users their login details when an account is created, for sites that onboard users another way.

- Type: PHP
- Runs: Run everywhere
- Category: [Email](https://wpide.com/library/category/email/)
- Tags: email, users, registration
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/email-disable-new-user-welcome/

## Code

```php
add_filter( 'wp_send_new_user_notification_to_user', '__return_false' );
```

## Notes

Users created this way need another route to set a password, such as "Lost your password?".

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Stop Login Details Emails to New Users" 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/
