Can I use this code with Kirby v2, or does it need some modification? Also where does it go in the Kirby file structure? The plugin folder?
<?php
Kirby::plugin('medienbaecker/shy', [
'hooks' => [
'kirbytags:before' => function ($text, $data, $options) {
return Str::replace($text, "(-)", "­");
}
]
]);
Source: Kreatives Unternehmertum: Website Relaunch with Kirby 3 | by Thomas Günther | Medium