WagtailWagtail

How To Remove Snippets Menu Item From Wagtail CMS Admin Menu

Feb 02, 2017 · Updated: Oct 09, 2019 · by Tim Kamanin

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

from wagtail.core 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!

Hey, if you've found this useful, please share the post to help other folks find it:

There's even more:

Subscribe for updates

  • via Twitter: @timonweb
  • old school RSS:
  • or evergreen email ↓ ↓ ↓