WC_Comments::exclude_action_log_comments_from_feed_where │ public static │ WC 9.9

Exclude action_log comments from queries and RSS.

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

Хуков нет.

Возвращает

string.

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

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

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

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

Код WC_Comments::exclude_action_log_comments_from_feed_where() WC 11.2.2

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