Skip to content

Kirby 3.7.5

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