Skip to content

Code Reference

The runtime API surface exposed by the Divi Builder.

Pages

PageWhat it covers
Divi Builder JavaScript APIThe API object passed to listeners of the et_builder_api_ready event. Includes API.Modules.register(), API.Utils.classnames(), and the decodeOptionListValue helper.

How JavaScript modules are registered

sequenceDiagram
  participant W as window
  participant B as Divi Builder
  participant Ext as Your extension

  W->>B: builder bootstraps
  B->>W: emit et_builder_api_ready
  W-->>Ext: event listener fires
  Ext->>B: API.Modules.register(modules)
  B->>W: render modules in the visual builder

Where the PHP side fits

This section only covers the JavaScript surface that runs inside the visual builder. The PHP class for a module — get_fields(), render(), the module slug — lives under Modules and the Create A Divi Builder Module SOP.

Reference compiled from publicly available Divi developer documentation.