WordPress is one of most CMS which very familiar and easy to use, many web developer use wordpress as their cms is because they can customize the look an feel of the wordpress theme as they want,, here is the simple way to customize wordpress,

if you want to change the behaviour of wordpress function, don’t edit the wordpress core, just hook the wordpress action or filter to change the behaviour,

ok let start..
our goal is to strip bad word such as fuck to something like f**k

here the code

/**
* . . . pusing version 1.0
* @author jester
*/

function strip_bad_word($text){
     // use it to access the wordpress database
     global $wpdb;
     str_replace("fuck","f**k",$text);
}

add_filter('the_content','strip_bad_word');

as you can see there are function definition and add_filter function call, add_filter function use to hook the user defined function to hook api provided by wordpress, in this case i use “the_content” hook filter to alter the post content before it displayed, like i said before, our goal is to strip “fuck” to “f**k” so i use “str_replace“, this is just simple sample, the rest is up to you,

WordPress Plugin Resource

Codex WordPress Developer