Skip to content
Corex

CtaRenderer

Corex\Ui\Blocks\CtaRenderer · class · Add-ons layer

Renders a call-to-action banner — a heading, a supporting line, and a single button. Text fields are edited inline with RichText (spec 029 → wp_kses_post). The button renders only when both its text and URL are set; an empty title renders nothing (graceful default).

render(array $attributes, string $content, object $block): string

Section titled “render(array $attributes, string $content, object $block): string”