Skip to content

Kirby 5.0.4

$version->publish()

This method can only be applied to the "changes" version. It will copy all fields over to the "latest" version and delete this version afterwards.

$version->publish() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$version->publish(Kirby\Cms\Language|string $language = 'default'): void

Parameters

Name Type Default
$language Kirby\Cms\Languageorstring 'default'

Parent class

Kirby\Content\Version

Examples

$page->version('changes')->publish();

// by language
$page->version('changes')->publish('de');