WordPress Function to Changing “Posts” menu name in admin to whatever you wish

Changing “Posts” menu name in admin to whatever you wish (e.g. “Articles”)

// hook the translation filters
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 );// ireplace is PHP5 only
return $translated;
}

Credits to smashingmagazine.com

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *