Created
January 1, 2024 17:01
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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