Skip to content

Kirby 3.5.7.1

page.update:after

$newPage, $oldPage

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

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.