page.changeStatus:before $page, $status, $position /site/config/config.php return [ 'hooks' => [ 'page.changeStatus:before' => function ($page, $status, $position) { // your code goes here } ] ]