# Stop Converting Text Smileys to Images

> Leaves text like :) and ;-) as typed instead of replacing it with smiley images or emoji.

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

## Code

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

add_action( 'init', function () {
    remove_filter( 'the_content', 'convert_smilies', 20 );
    remove_filter( 'the_excerpt', 'convert_smilies' );
    remove_filter( 'comment_text', 'convert_smilies', 20 );
    remove_filter( 'widget_text_content', 'convert_smilies', 20 );
    remove_filter( 'the_post_thumbnail_caption', 'convert_smilies' );
} );
```

## Notes

Emoji you type directly are not affected; use the emoji snippet to stop the emoji script.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Stop Converting Text Smileys to Images" 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/
