WC_Comments::akismet_excluded_comment_typespublic staticWC 10.6.0

Exclude order comments from Akismet comments counting SQL queries for better performance.

Method of the class: WC_Comments{}

No Hooks.

Returns

String[].

Usage

$result = WC_Comments::akismet_excluded_comment_types( $comment_types ): array;
$comment_types(string[]) (required)
Excluded comments types.

Changelog

Since 10.6.0 Introduced.

WC_Comments::akismet_excluded_comment_types() code WC 10.8.1

public static function akismet_excluded_comment_types( $comment_types ): array {
	$comment_types[] = 'order_note';
	return $comment_types;
}