Created
July 10, 2017 15:21
-
-
Save domantasg/6bacb48a22070ccbef23a7f55b86fcc5 to your computer and use it in GitHub Desktop.
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
// Hook the 'the_content' filter hook (content of any post), run the function named 'mfp_Fix_Text_Spacing' | |
add_filter("the_content", "mfp_Fix_Text_Spacing"); | |
// Automatically correct double spaces from any post | |
function mfp_Fix_Text_Spacing($the_Post) | |
{ | |
$the_New_Post = str_replace(" ", " ", $the_Post); | |
return $the_New_Post; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment