What problem does it solve?
Developers need a repeatable pattern to build Bricks Builder custom elements that extend the Bricks\Element base class, ensuring consistency, proper rendering, and builder integration across WordPress projects.
Core Features & Use Cases
- Element architecture and namespace: extend Bricks\Element and place the class under includes/elements to centralize behavior.
- Registration and discovery: two common methods to register: via the braces filter and via direct registration, enabling clean integration in themes or plugins.
- Rendering and customization: define labels, controls, render logic, and a builder preview to generate production-ready UI components.
- Use case: create a feature box, a post-grid item, or a custom widget that can be reused across pages.
Quick Start
Define a new PHP class that extends Bricks\Element, implements required properties (category, name, tag, etc.), and register it with the Bricks elements flow.