Skip to content

Kirby 3.5.7.1

file.changeName:before

$file, $name

/site/config/config.php
return [
    'hooks' => [
        'file.changeName:before' => function ($file, $name) {
            // your code goes here
        }
    ]
]