WC_Comments::exclude_order_comments_from_feed_where │ public static │ WC 1.0

Exclude order comments from queries and RSS.

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

Хуков нет.

Возвращает

string.

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

$result = WC_Comments::exclude_order_comments_from_feed_where( $where );
$where(строка) (обязательный)
The WHERE clause of the query.

Код WC_Comments::exclude_order_comments_from_feed_where() WC 11.2.2

public static function exclude_order_comments_from_feed_where( $where ) {
	return $where . ( trim( $where ) ? ' AND ' : '' ) . " comment_type != 'order_note' ";
}