Skip to content

Instantly share code, notes, and snippets.

@Unicom3000
Unicom3000 / functions.php
Created April 6, 2020 19:36 — forked from numediaweb/functions.php
Filter WordPress admin side navigation menues
function filter_admin_menues() {
// If administrator then do nothing
if (current_user_can('activate_plugins')) return;
// Remove main menus
$main_menus_to_stay = array(
// Dashboard
'index.php',