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