Skip to content

Kirby 3.7.5

page.update:after

/site/config/config.php
return [
    'hooks' => [
        'page.update: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

Note that the page.update:after hook is only called when the content of the page is updated, not when the slug, title, status etc. are changed.