How To Remove Snippets Menu Item From Wagtail CMS Admin Menu

02 Feb · by Tim Kamanin · 1 min read

Put this hook into wagtail_hooks.py file of your Wagtail CMS app.

from wagtail.wagtailcore import hooks

@hooks.register('construct_main_menu')
def hide_snippets_menu_item(request, menu_items):
  menu_items[:] = [item for item in menu_items if item.name != 'snippets']

Restart your server and you're done!

Comments

Required for comment verification