Created
July 25, 2017 16:15
-
-
Save jb510/4e7e22ca2e12fbb2dcace6bc24f4bb59 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function my_capitalize_string($content) { | |
$content = str_replace('some string', 'SOME STRING',$content); | |
return $content; | |
} | |
add_filter('the_content','my_capitalize_string'); | |
add_filter('the_excerpt','my_capitalize_string'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment