What Are Extensions?
Beaver Builder extensions are modular components that add specialized functionality to the core plugin. They are loaded automatically when Beaver Builder is active and provide features like theme building, cloud templates, white labeling, and more.Extensions are located in the
extensions/ directory and are initialized during plugin load.Extension Architecture
Extensions follow a consistent structure:- Main File: Each extension has an entry file (e.g.,
fl-theme-builder-core.php) - Classes Directory: Contains the core logic classes
- Includes Directory: Additional files like templates and settings
- Assets: CSS and JavaScript files for frontend and admin interfaces
Extension Loading
Extensions are loaded conditionally based on:- Available features
- License level
- Theme support
- Multisite settings
Available Extensions
Theme Builder
Create custom headers, footers, and post layouts with dynamic field connections
Cloud Templates
Access and manage templates from Beaver Builder’s cloud library
White Label
Customize branding for client sites and agency workflows
User Templates
Manage user-created templates and enable template export/import
Global Styles
Define and apply consistent styling across all modules and layouts
Cache Helper
Integration with popular caching plugins for automatic cache clearing
Version Control
Track and manage layout revisions with rollback capabilities
Multisite Support
Network-level settings and configuration for WordPress multisite
Extension Constants
Each extension defines constants for directory and URL paths:| Extension | Directory Constant | URL Constant |
|---|---|---|
| Theme Builder | FL_THEME_BUILDER_CORE_DIR | FL_THEME_BUILDER_CORE_URL |
| Cloud | FL_BUILDER_CLOUD_DIR | FL_BUILDER_CLOUD_URL |
| White Label | FL_BUILDER_WHITE_LABEL_DIR | FL_BUILDER_WHITE_LABEL_URL |
Creating Custom Extensions
While most users won’t need to create custom extensions, developers can extend Beaver Builder by:- Creating a custom plugin that hooks into Beaver Builder
- Using the extensive filter and action hooks provided
- Registering custom modules, templates, or field types
Extension Dependencies
Some extensions depend on others:- Theme Builder requires core classes like
FLPageDataandFLThemeBuilderFieldConnections - Cloud Templates integrates with the Assistant interface when available
- White Label works with both the plugin and theme
Performance Considerations
Query Caching
Extensions implement caching to prevent expensive database queries:Next Steps
Theme Builder
Learn about creating custom theme layouts
Field Connections
Connect dynamic data to module fields