PagesEditor::editor method

Silently remove status flag from a Page and save

This action does not update the Page modified date. It updates the status for both the given instantiated Page object and the value in the DB.

Available since version 3.0.146.

Usage

$bool = $pages->editor->removeStatus(Page $page, int $status);

Arguments

NameType(s)Description
$pagePage
$statusint

Use Page::status* constants

Return value

bool

See Also


$pages->editor methods and properties

API reference based on ProcessWire core version 3.0.252