WC_Comments::akismet_excluded_comment_types │ public static │ WC 10.6.0

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

Метод класса: WC_Comments{}

Хуков нет.

Возвращает

string[].

Использование

$result = WC_Comments::akismet_excluded_comment_types( $comment_types ): array;
$comment_types(string[]) (обязательный)
Excluded comments types.

Список изменений

С версии 10.6.0 Введена.

Код WC_Comments::akismet_excluded_comment_types() WC 11.2.2

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