WordPress at Your Fingertips
function is not described

WC_Comments::exclude_webhook_comments() public WC 2.2

Exclude webhook comments from queries and RSS.

{} It's a method of the class: WC_Comments{}

No Hooks.

Return

Array.

Usage

$result = WC_Comments::exclude_webhook_comments( $clauses );
$clauses(array) (required)
A compacted array of comment query clauses.

Changelog

Since 2.2 Introduced.

Code of WC_Comments::exclude_webhook_comments() WC 5.6.0

public static function exclude_webhook_comments( $clauses ) {
	$clauses['where'] .= ( $clauses['where'] ? ' AND ' : '' ) . " comment_type != 'webhook_delivery' ";
	return $clauses;
}