# Stop Comment Notification Emails

> Stops WordPress from emailing post authors about new comments and moderators about comments awaiting approval.

- Type: PHP
- Runs: Run everywhere
- Category: [Email](https://wpide.com/library/category/email/)
- Tags: email, comments, notifications
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/disable-comment-notification-emails/

## Code

```php
add_filter( 'notify_post_author', '__return_false' );
add_filter( 'notify_moderator', '__return_false' );
```

## How to use it

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