yan-k
4/3/2014 - 4:17 PM

wp-rename-wp-admin-menu-items.php

<?php
add_filter('gettext', 'rename_admin_menu_items');
add_filter('ngettext', 'rename_admin_menu_items');
/**
 * Replaces wp-admin menu item names
 * 
 * @author Daan Kortenbach
 * 
 * @param array $menu The menu array.
 *
 * @return $menu Menu array with replaced items.
 */
function rename_admin_menu_items( $menu ) {
	
	// $menu = str_ireplace( 'original name', 'new name', $menu );
	$menu = str_ireplace( 'Dashboard', 'Home', $menu );
	
	// return $menu array
	return $menu;
}