ShortcodeDefinition
in package
Read onlyYes
FinalYes
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).
Table of Contents
Properties
Methods
- __construct() : mixed
Properties
$render
public
mixed
$render
$tag
public
string
$tag
Methods
__construct()
public
__construct(non-empty-string $tag, mixed $render) : mixed
Parameters
- $tag : non-empty-string
- $render : mixed