Skip to content

Kirby 3.5.7.1

file.replace:after

$newFile, $oldFile

/site/config/config.php
return [
    'hooks' => [
        'file.replace:after' => function ($newFile, $oldFile) {
            // your code goes here
        }
    ]
]