
To hide the GravityKit menu link from the WordPress Admin Backend menu without having to mess with the GravityView Access Capabilities, you can use the filter provided below. Note this will hide the GravityKit menu for all users except administrators:
if( ! current_user_can( 'administrator' ) )
{
add_filter( 'gk/foundation/admin-menu/submenus', function ()
{
return [];
}, 100 );
}
To hide the menu for everyone, including yourself (administrators) use the code below:
add_filter( 'gk/foundation/admin-menu/submenus', function ()
{
return [];
}, 100 );




