Skip to content

page.update:before

$page, $values, $strings

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

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