Skip to content

Kirby 3.7.5

site.changeTitle:before

/site/config/config.php
return [
    'hooks' => [
        'site.changeTitle:before' => function (Kirby\Cms\Site $site, string $title, ?string $languageCode = null) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$site Kirby\Cms\Site
$title string
$languageCode string|null