Skip to content

Kirby 3.6.1.1

page.create:before

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

Parameters

Parameter Type
$page Kirby\Cms\Page
$input array