Skip to content

Kirby 4.4.1

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