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.
Opens WPIDE on
Code
// 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 add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.