wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. is_load_wpdiscuz
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors


This filter can be used for detecting if the wpDiscuz should be loaded or not.


since 7.0.0 version


1. $load (type: bool) – if the wpDiscuz should be added to the current page or not
2. $post (type: WP_Post object) – the object of the current post


add_filter("is_load_wpdiscuz", function ($load, $post) {
    return $load || is_archive();
}, 10, 2);

Was this article helpful to you? Yes 2 No