Created
January 7, 2014 04:08
-
-
Save simongcc/8294506 to your computer and use it in GitHub Desktop.
Modify text output from the translated text pool in Wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Purpose: modify text, it modify the output from the translated text pool | |
Version Tested: 3.8 | |
Original Reference: | |
http://botcrawl.com/how-to-change-the-posts-menu-title-to-articles-in-the-wordpress-dashboard/ | |
*/ | |
function change_post_to_article($translated) { | |
$translated = str_ireplace('Post', 'Article', $translated); | |
return $translated; | |
} | |
add_filter('gettext', 'change_post_to_article'); | |
add_filter('ngettext', 'change_post_to_article'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment