WC_Comments::exclude_webhook_comments
Exclude webhook comments from queries and RSS.
Метод класса: WC_Comments{}
Хуков нет.
Возвращает
Массив.
Использование
$result = WC_Comments::exclude_webhook_comments( $clauses );
- $clauses(массив) (обязательный)
- A compacted array of comment query clauses.
Список изменений
| С версии 2.2 | Введена. |
Код WC_Comments::exclude_webhook_comments() WC Comments::exclude webhook comments WC 10.7.0
public static function exclude_webhook_comments( $clauses ) {
$clauses['where'] .= ( trim( $clauses['where'] ) ? ' AND ' : '' ) . " comment_type != 'webhook_delivery' ";
return $clauses;
}