Skip to content

Kirby 4.5.0

page.render:after

/site/config/config.php
return [
    'hooks' => [
        'page.render:after' => function (string $contentType, array $data, string $html, Kirby\Cms\Page $page) {
            // your code goes here
            return $html;
        }
    ]
]

Parameters

Parameter Type
$contentType string
$data array
$html string
$page Kirby\Cms\Page