kirbytext:before $text /site/config/config.php return [ 'hooks' => [ 'kirbytext:before' => function ($text) { // your code goes here return $text; } ] ] Further information See The order of kirbytext/kirbytags hooks