Reference

Guide

hooks

Hook into Kirby events and execute your functions in the background

/site/config/config.php
return [
  'hooks' => [
    'page.delete:before' => function ($page) {
      // do something before a page gets deleted
    }
  ]
];

Available hooks