Skip to content

Kirby 3.6.0

page.changeSlug:after

/site/config/config.php
return [
    'hooks' => [
        'page.changeSlug:after' => function (Kirby\Cms\Page $newPage, Kirby\Cms\Page $oldPage) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$newPage Kirby\Cms\Page
$oldPage Kirby\Cms\Page