# Hide Beaver Builder Templates From Non-Administrators

> Removes the Beaver Builder templates and saved rows menu from wp-admin for everyone but administrators, so shared layouts are not edited by mistake.

- Type: PHP
- Runs: Admin only
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: beaver-builder, templates, roles
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/beaver-builder-templates-admins-only/

## Code

```php
add_action( 'admin_menu', function () {
    if ( ! current_user_can( 'manage_options' ) ) {
        remove_menu_page( 'edit.php?post_type=fl-builder-template' );
    }
}, 999 );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Hide Beaver Builder Templates From Non-Administrators" 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/
