Skip to content

Kirby 4.2.0

$fileactions->unpublish()

Remove all public versions of this file

$fileactions->unpublish(bool $onlyMedia = false): Kirby\Cms\FileActions

Parameters

Name Type Default
$onlyMedia bool false

Return type

Kirby\Cms\FileActions

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

Parent class

Kirby\Cms\FileActions