Skip to content

Kirby 3.6.1.1

page.duplicate:after

/site/config/config.php
return [
    'hooks' => [
        'page.duplicate:after' => function (Kirby\Cms\Page $duplicatePage, Kirby\Cms\Page $originalPage) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$duplicatePage Kirby\Cms\Page
$originalPage Kirby\Cms\Page