# Hide GiveWP Menus From Non-Fundraising Staff

> Removes the Donations menu from the dashboard for users who cannot view GiveWP reports, keeping editors' menus short on charity sites.

- Type: PHP
- Runs: Admin only
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: givewp, admin-menu, roles
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/give-hide-menu-non-staff/

## Code

```php
add_action( 'admin_menu', function () {
    if ( defined( 'GIVE_VERSION' ) && ! current_user_can( 'view_give_reports' ) ) {
        remove_menu_page( 'edit.php?post_type=give_forms' );
    }
}, 999 );
```

## Notes

Give your fundraising team the view_give_reports capability (GiveWP's Worker and Manager roles have it).

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Hide GiveWP Menus From Non-Fundraising Staff" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
