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: https://medium.com/@medienbaecker/kreatives-unternehmertum-website-relaunch-with-kirby-3-c15579ba2e5