Reference

Guide

kirbytext:before

$text

Example

/site/config/config.php
return [
    'hooks' => [
        'kirbytext:before' => function ($text) {
            // your code goes here
            return $text;
        }
    ]
]