diff --git a/Plugin.php b/Plugin.php index 8887f53..18ec222 100644 --- a/Plugin.php +++ b/Plugin.php @@ -96,6 +96,18 @@ class Plugin extends PluginBase ]; } + public function registerMarkupTags(): array + { + return [ + 'filters' => [ + 'human' => function($date) { + return $date->diffForHumans(); + } + ] + ]; + + } + public function registerSettings() { return [ 'settings' => [