feat(wpmc S3): ShortcodeDmr scaffold + register init hook

This commit is contained in:
Vladimir Bryzgalov
2026-05-12 20:05:50 +05:00
parent 22099cf1d6
commit f68b30b4e6
3 changed files with 53 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?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 '';
}
}