# Disable Smart Quotes and Dashes

> Turns off wptexturize, which converts straight quotes, double hyphens and ellipses into typographic characters. Useful for sites that publish code.

- Type: PHP
- Runs: Run everywhere
- Category: [Content](https://wpide.com/library/category/content/)
- Tags: content, formatting, quotes, code
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/disable-smart-quotes/

## Code

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

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Disable Smart Quotes and Dashes" 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/
