Skip to content

Instantly share code, notes, and snippets.

@SitesByYogi
Last active July 24, 2022 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SitesByYogi/986ac2942081be0858d31bcba53c90b5 to your computer and use it in GitHub Desktop.
Save SitesByYogi/986ac2942081be0858d31bcba53c90b5 to your computer and use it in GitHub Desktop.
Replace terms and phrases
<?php
// Filter hook
add_filter('the_content',array('sby2_fix_wordpress','fix_spelling'));
class sby2_fix_wordpress
{
function fix_spelling($content)
{
$content= str_replace('joint','JOINT',$content);
return "$content";
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment