Skip to content

Kirby 4.5.0

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