It is pretty much common that you want to customize the label of certain things, say “post” label to “article” in your WordPress blog. It can be done with just few lines of code, just simply copy and paste the following snippet in your theme’s functions.php file and you are done.
1 2 3 4 5 6 | add_filter('gettext', 'change_post_to_article'); add_filter('ngettext', 'change_post_to_article'); function change_post_to_article($translated) { $translated = str_ireplace('Post', 'Article', $translated); return $translated; |
Snippet Source/Credit: Smashing Magazine