page.changeNum:after $newPage, $oldPage /site/config/config.php return [ 'hooks' => [ 'page.changeNum:after' => function ($newPage, $oldPage) { // your code goes here } ] ]