Skip to content

Instantly share code, notes, and snippets.

@lunule
Created January 1, 2024 17:01
Show Gist options
  • Save lunule/8d4f8ad45d26554284ceb8c54da4490a to your computer and use it in GitHub Desktop.
Save lunule/8d4f8ad45d26554284ceb8c54da4490a to your computer and use it in GitHub Desktop.
[WordPress - Disable WP's Auto Formatting of Quotes Into Curly Quotes] #wp #core #quotes #quotation-marks http://forum.bytesforall.com/showthread.php?t=2932
<?php
remove_filter ('single_post_title', 'wptexturize');
remove_filter ('bloginfo', 'wptexturize');
remove_filter ('wp_title', 'wptexturize');
// Additionally, you can remove the filter for other locations as well:
remove_filter ('category_description', 'wptexturize');
remove_filter ('list_cats', 'wptexturize');
remove_filter ('comment_author', 'wptexturize');
remove_filter ('comment_text', 'wptexturize');
remove_filter ('the_title', 'wptexturize');
remove_filter ('the_content', 'wptexturize');
remove_filter ('the_excerpt', 'wptexturize');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment