Replace string in page content

This function will replace all occurrences of “look-for-this-string” in page content

function wb_replace_text($text) {
	$text = str_replace('look-for-this-string', 'replace-with-this-string', $text);
	return $text;
}
add_filter('the_content', 'wb_replace_text');

Author: Wojciech Borowicz

I hope this post will help you to do what you need.
In case you want some assistance click here to get in touch 

check out other blog posts