Skip to content

Kirby 6.0.0

$site->modified()

Gets the last modification date of all pages in the content folder.

$site->modified(string|null $format = null, string|null $handler = null): int|string|false

Parameters

Name Type Default
$format stringornull null
$handler stringornull null

Return types

intorstringorfalse

Parent class

Kirby\Cms\Site

Examples

Last update: <?= $site->modified('d/m/Y H:i') ?>

$site->modified() might take (very) long for websites with many pages because it runs through all pages in the content folder. Use with caution.