Skip to content

Kirby 4.5.0

page.changeNum:before

/site/config/config.php
return [
    'hooks' => [
        'page.changeNum:before' => function (Kirby\Cms\Page $page, int $num) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$page Kirby\Cms\Page
$num int