PagesTrash::trasher method
Delete all pages in the trash
Populates error notices when there are errors deleting specific pages.
Usage
// basic usage
$int = $pages->trasher->emptyTrash();
// usage with all arguments
$int = $pages->trasher->emptyTrash(array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
$options (optional) | array |
|
Return value
int
array
Returns integer (default) or array in verbose mode.
- By default, returns total number of pages deleted from trash. This number is negative or 0 if not all pages could be deleted and error notices may be present.
- Returns associative array with verbose information if verbose option is chosen.
$pages->trasher methods and properties
API reference based on ProcessWire core version 3.0.252