CommentField::deleteComment()

Delete a given comment

Usage

// basic usage
$mixed = $commentField->deleteComment(Page $page, Comment $comment);

// usage with all arguments
$mixed = $commentField->deleteComment(Page $page, Comment $comment, string $notes = '');

Arguments

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

Return value

mixed


CommentField methods and properties

API reference based on ProcessWire core version 3.0.251