I changed “Howdy” in the admin bar in the dashboard, but when I’m viewing the site it still says Howdy!
I see a couple of problems here. This line if (!is_admin() || ‘default’ != $domain) return $translated; returns the Howdy right back unchanged if is_admin is false – which it is if you’re not in the dashboard. Also, you’re running your filter callback on gettext. This means it will be run every time some internationalized … Read more