FieldtypeComments::deleteComment()

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

NameType(s)Description
$pagePage
$fieldField
$commentComment
$notes (optional)string

Return value

bool


FieldtypeComments methods and properties

API reference based on ProcessWire core version 3.0.251