# Turn Off Avatars Everywhere

> Stops avatars from being shown in comments, the admin bar and user lists, saving the image requests.

- Type: PHP
- Runs: Run everywhere
- Category: [Disable Features](https://wpide.com/library/category/disable-features/)
- Tags: disable, avatars, privacy
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/turn-off-avatars/

## Code

```php
add_filter( 'pre_option_show_avatars', function () {
    return '0';
} );
```

## Notes

Same as unticking "Show Avatars" in Settings > Discussion, but locked in code.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Turn Off Avatars Everywhere" 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/
