Skip to content
Corex

PricingRenderer

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

Renders a pricing card — plan name, price + optional period, a feature list (one feature per line), and an optional call-to-action link. The CTA appears only when both its text and URL are set; the href is escaped with esc_url. Empty plan AND price render nothing.

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

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