Skip to content

Instantly share code, notes, and snippets.

@seoindex
Created January 4, 2017 09:52
Show Gist options
  • Save seoindex/dc7d37a800f0de17da70bf748cfcd5eb to your computer and use it in GitHub Desktop.
Save seoindex/dc7d37a800f0de17da70bf748cfcd5eb to your computer and use it in GitHub Desktop.
Nascondere un menu dalla sidebar admin per tutti gli utenti tranne che per l'amministratore
function remove_menus(){
remove_menu_page( 'vc-welcome' );
}
add_action( 'admin_menu', 'remove_menus' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment