wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. wpdiscuz_found_comments_query
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages

wpdiscuz_found_comments_query

This hook can be used to exclude the comments’ types that should not be got when pagination is enabled.

Changelog

Since 7.0.0 version

Parameters

$typesNotIn (type: array) – the array of the comments’ types

Usage

add_filter("wpdiscuz_found_comments_query", function ($typesNotIn) {
    $typesNotIn[] = "myCustomType";
    return $typesNotIn;
});

Was this article helpful to you? Yes No