Skip to content

Kirby 5.6.4

$version->unlock()

Removes the lock from the changes version without discarding changes. With $force, the lock is removed even if the current user doesn't hold it.

$version->unlock() 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->unlock(Kirby\Cms\Language|string $language = 'default', bool $force = false): void

Parameters

Name Type Default
$language Kirby\Cms\Languageorstring 'default'
$force bool false

Parent class

Kirby\Content\Version