In the wordpress admin area there are standard menu items on the left, such as Записи, Медиафайлы, Страницы, Комментарии и тд .
Tell me, how can I change the standard name of one of the items?
For example, I need to change the Комментарии to another name.
I tried to recompile the wp-content\languages\ru_RU.po with the required name for comments, but it does not work.

    2 answers 2

    In the functions.php file:

     function edit_admin_menus() { global $menu; global $submenu; $menu[5][0] = 'Книги'; // Изменить Записи на Книги $submenu['edit.php'][5][0] = 'Все Книги'; } add_action( 'admin_menu', 'edit_admin_menus' ); 

    $menu[5] - where 5 is the id of the menu item. List of all id:

    enter image description here

      These "items", or rather menu items are stored in the database. To edit (links, titles) just go to the administration panel, Appearance -> Menu. Next, select the menu that you want to change and make changes to the elements.