Documentation

ShortcodeDefinition.php

middag-io/wordpress — MIDDAG WordPress adapter.

Tags
author

Michael Meneses michael@middag.io

copyright

2026 MIDDAG (https://middag.io)

license

Apache-2.0

Table of Contents

Classes

ShortcodeDefinition
Declarative shortcode: tag + render callback, registered by {@see DefinitionRegistrar}. The callback receives the standard WP shortcode signature `(array|string $atts, ?string $content, string $tag)` and returns the markup (shortcodes must return, never echo).
On this page

Search results