Skip to content
Sign in Get started
Menu
Developer docs menu

Public API

Applies to Theme 1.0.3 and Companion 1.0.3 Updated 30 October 2026 View as Markdown

The public API is the list of names in api.json: hooks, blocks, block styles, the lanternwp/store Block Bindings source, CSS classes, pattern and template part slugs, theme.json presets, WP-CLI commands and Companion's Features REST route. Everything else, including PHP classes, CSS classes not on the list and the markup of patterns, is internal and changes without notice.

How a public name changes

  • Until the first stable release, a public name may change or go away in any release. There is no transition period: the old name stops working in the release that changes it, with no message in the error log.
  • Every such change is listed in the changelog's For developers group, with the name that replaces it.
  • Pin the versions you build against and read that group before you update.
  • Before the first stable release, this page will say how long an old name keeps working from then on.

Adding to the list

The list stays short: a name joins it when someone building on LanternWP needs it. Tell us which one and why at hello@lanternwp.com.