WC_Comments::akismet_excluded_comment_types
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 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;
}