Replace menu text within the admin sidebar menu

Adding this snippet to the functions.php of your wordpress theme will replace the word “post” in the admin menu with the word “article”. This snippet however could be used to replace other items within the admin sidebar menu.


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;

Leave a comment