Skip to content

Kirby 3.6.6

$page->unpublish()

Convert a page from listed or unlisted to draft.

$page->unpublish(): Kirby\Cms\Page

Return type

Kirby\Cms\Page

This method does not modify the existing $page object but returns a new object with the changes applied. Learn more →

Exceptions

Type Description
Kirby\Exception\LogicException If the folder cannot be moved

Parent class

Kirby\Cms\Page