How To Remove A Menu Item From Wagtail Settings Menu

Oct 09, 2019 · by Tim Kamanin

Let's say I want to remove the User menu item from Wagtail settings menu.

All I need to do is to put this hook into file of my Wagtail CMS app:

from wagtail.core import hooks

def hide_user_menu_item(request, menu_items):
    menu_items[:] = [item for item in menu_items if != 'user']

Start the Django server, and you should see no User menu item under Settings.

Want to get more 🔥 tips like this one?

Subscribe to get notified about new dev tutorials