33 lines
654 B
PHP
33 lines
654 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace WPMultiCity;
|
|
|
|
final class ShortcodeDmr
|
|
{
|
|
public const SHORTCODE = 'shortcode_dmr';
|
|
|
|
private static array $render_cache = [];
|
|
|
|
public static function reset_cache(): void
|
|
{
|
|
self::$render_cache = [];
|
|
}
|
|
|
|
public static function register(): void
|
|
{
|
|
\add_action('init', [self::class, 'do_register']);
|
|
}
|
|
|
|
public static function do_register(): void
|
|
{
|
|
\add_shortcode(self::SHORTCODE, [self::class, 'render']);
|
|
}
|
|
|
|
public static function render($atts = [], $content = null): string
|
|
{
|
|
// Implementation in Task 13.
|
|
return '';
|
|
}
|
|
}
|