Skip to content

Kirby 3.9.8

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