---
title: "How to hide the GravityKit menu"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview/advanced/hide-settings-menu/"
---

![WordPress dashboard sidebar highlighting GravityKit menu option](https://www.gravitykit.com/wp-content/uploads/2025/10/file-UMJOfAm3hF.png)
*If, for some reason, you need to forcefully hide the GravityKit menu without having to mess with*[capabilities](https://www.gravitykit.com/docs/gravityview/roles-and-capabilities/gravityview-capabilities/), then you can use the filter below:

```
add_filter( 'gk/foundation/admin-menu/submenus', function () {
	return [];
}, 100 );
```

```
add_filter( 'gk/foundation/admin-menu/submenus', function () {
	return [];
}, 100 );
```

That will hide the menu for everyone, **including yourself!**

Read here how to add these code samples to your website: [Where to put code samples.](https://www.gravitykit.com/docs/gravityview/customizing-your-views/where-to-put-code-samples/)