3

Always Spell WordPress Correctly

Do you find that you're always misspelling words like WordPress or other words you use a lot on you're site? This will show how to always spell those words correctly and never have to worry about typos again!...
Always Spell WordPress Correctly

Quick Tip

Here's what you need to do to make sure you don't make another spelling error on a word you write wrongly a lot.

// Always spell WordPress correctly - since I'm a dumb ass and haven't been forever now
function writeWordPressCorrect($content) {
	$content = str_ireplace("wordpress","WordPress", $content);
	return $content;
}

Then you just need to add the filters to run the function as part of you're theme.

// for correcting the title
add_filter( 'the_title', 'writeWordPressCorrect',1 );
// correcting the post content
add_filter( 'the_content', 'writeWordPressCorrect',1 );

Simple right! You can obviously replace WordPress with another word, say for example jQuery. Or any other word that you use a lot on you're site and many times misspell you can apply this trick to prevent it.

Questions, let me know.

Shortlink:

Get automatic updates! Subscribe to Our RSS Feed or Get Email Updates sent straight to your inbox!

About the Author

Jared is from Boston working as a web and graphic designer. Also owns the design blog Tweeaks.com, and has designed many other websites powered by Wordpress including the New2WP theme.

Level: Noob

User Comments

( ADD YOURS )

  1. It's kind of ironic that you put 'you're' instead of 'your'.


  2. How so?
    If you're referring to the use of it in the first sentence of this post, it is used correctly as a contraction in asking a question.

    Do you find that you're always ... / Do you find that you are always ....
    Not your, that would be like saying you have an always, or an always that's yours.

    It is more ironic that I created this script, and then had an epiphany after posting it when I realized that I had been spelling WordPress the wrong way thinking it was the right way, for years. The best part is that I wrote this code correctly, but no where else on this site had I spelled it correctly. lmao.

  1. Avatar

    Your Name
    May 17


    CommentLuv badge