WC_Comments::exclude_webhook_comments( array $clauses )

Exclude webhook comments from queries and RSS.


Description Description


Parameters Parameters

$clauses

(Required) A compacted array of comment query clauses.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/class-wc-comments.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.2 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.