/*Ocultar elementos del Menú de Administración*/ add_action('admin_init', 'oxygenados_admin_init'); function oxygenados_admin_init() { // Menús que se eliminan $menus_to_stay = array( // Entradas 'edit.php', // Usuarios 'users.php', ); foreach ($GLOBALS['menu'] as $key => $value) { if (in_array($value[2], $menus_to_stay)) remove_menu_page($value[2]); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter