Delete a given comment
Usage
// basic usage
$bool = $fieldtypeComments->deleteComment(Page $page, Field $field, Comment $comment);
// usage with all arguments
$bool = $fieldtypeComments->deleteComment(Page $page, Field $field, Comment $comment, string $notes = '');
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | |
field | Field | |
comment | Comment | |
notes (optional) | string |
Return value
bool
FieldtypeComments methods and properties
API reference based on ProcessWire core version 3.0.236