CommentField::allowCommentPage()

Allow given comment to live on given page?

Available since version 3.0.149.

Usage

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

// usage with all arguments
$bool = $commentField->allowCommentPage(Comment $comment, Page $page, bool $verbose = false);

Arguments

NameType(s)Description
$commentComment
$pagePage
$verbose (optional)bool

Report reason why not to standard errors? Default:false

Return value

bool


CommentField methods and properties

API reference based on ProcessWire core version 3.0.251