# Hide Unused Beaver Builder Modules

> Removes the modules you list from the Beaver Builder panel, so editors only see the building blocks your design system uses.

- Type: PHP
- Runs: Run everywhere
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: beaver-builder, modules, editor, cleanup
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/beaver-builder-hide-modules/

## Code

```php
// Module slugs to hide.
$wpide_bb_hidden_modules = array( 'audio', 'countdown', 'sidebar', 'widget' );

add_filter( 'fl_builder_register_module', function ( $enabled, $instance ) use ( $wpide_bb_hidden_modules ) {
    if ( is_object( $instance ) && isset( $instance->slug ) && in_array( $instance->slug, $wpide_bb_hidden_modules, true ) ) {
        return false;
    }

    return $enabled;
}, 10, 2 );
```

## Notes

Module slugs are the folder names in the plugin's modules directory, such as audio, countdown or sidebar. Layouts already using a hidden module stop showing it.

## How to use it

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