Wordpress has a filter called the_content
where one can, for example, change all occurrences of the word "foo" to "bar" in the callback function:
add_filter('the_content','callback');
function callback($content){
$content = str_ireplace("foo","bar",$content);
return $content;
}
My question is how can I do the same thing in the admin area?
We are rebranding a plugin, and if you've tackled that before, you know it gets a bit more involved than doing a simple "search and replace."
What I'd like to do in the meantime is find and replace "OldPluginBranding" with "NewPluginBranding" whereever it occurs in the wp-admin area. the_content
filter doesn't seem to work in that area, however.