Função "edit_admin_menus()" que permite customizar os menus e submenus do admin

<?php function edit_admin_menus() { global $menu; global $submenu; $menu[5][0] = 'Notícias'; // renomear menus $submenu['edit.php'][5][0] = 'Todas as notícias'; // renomear submenus remove_menu_page('edit.php'); // remover um menu remove_submenu_page('themes.php','theme-editor.php'); // remover um submenu } add_action( 'admin_menu', 'edit_admin_menus' ); //A seleção do menu é feita de acordo com um key value ou url/slug. ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.