Rename wp-admin menu items

Ever wanted to rename wp-admin menu items in WordPress? You can by adding the following code to your theme’s functions.php file:

https://gist.github.com/2044734

You can add multiple changes by copying this line and changing Dashboard and Home:
$menu = str_ireplace( ‘Dashboard’, ‘Home’, $menu );

Note: This will replace all references to Dashboard to Home so you could use this to rename other stuff. For instance, you can rebrand WooCommerce to DaanShop, which, ofcourse, is way cooler ๐Ÿ˜‰

Reader Interactions

Comments

  1. Hey Daan
    Thanks for the code. It works for the standard menu items. But not with the ones of the Croma Bistro theme, that I want to change like: menus, reservation, locations, promotions…. Any idea?

    Thanks for your help.

    Michael

  2. dan,

    thanks. this was what I was looking for.
    Do you know if this has any effect when the theme is being translated via wpml?
    I know they have menu and string translators in that plugin – just wondering if this has any negative effects.

    Thanks again.

  3. Thanks for this great tutorial man.. It really works. But how about the menu names created by pluings? I have a menu item ‘News Headlines’ and I wish to rename it as ‘Notice’. Using this snippet, it does not work at all. Any idea how can I execute this? Thanks once again.

Leave a Reply

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