# page.changeNum:before

****

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

| Name | Type |
| ---- | ---- |
| `$page` | `Kirby\Cms\Page` |
| `$num` | `int` |