<?php
/* 
= Rename admin menu submenu items
* WordPress: 3.3.1
* Version: 1.0
* URL: elbone.com.au
* Files: functions.php
*/

// Rename admin menu submenu items
add_action( 'admin_menu', 'elbone_edit_admin_menus' );
if (!function_exists('elbone_edit_admin_menus') {
    function elbone_edit_admin_menus() {
	    global $menu, $submenu;
	    $menu[5][0] = 'Recipes'; // Change Posts to Recipes
	    $submenu['edit.php'][5][0] = 'All Recipes';
	    $submenu['edit.php'][10][0] = 'Add a Recipe';
	    $submenu['edit.php'][15][0] = 'Meal Types'; // Rename categories to meal types
	    $submenu['edit.php'][16][0] = 'Ingredients'; // Rename tags to ingredients
    }
}