Skip to content

Kirby 4.5.0

page.delete:before

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

Parameters

Parameter Type
$page Kirby\Cms\Page
$force bool