Skip to content

Kirby 3.7.5

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