Skip to content

Kirby 4.5.0

kirbytags:before

/site/config/config.php
return [
    'hooks' => [
        'kirbytags:before' => function (string $text, array $data, array $options) {
            // your code goes here
            return $text;
        }
    ]
]

Parameters

Parameter Type
$text string
$data array
$options array

More information