Skip to content

Kirby 3.6.6

page.changeStatus:before

/site/config/config.php
return [
    'hooks' => [
        'page.changeStatus:before' => function (Kirby\Cms\Page $page, string $status, ?int $position = null) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$page Kirby\Cms\Page
$status string
$position int|null