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

is_load_wpdiscuz

This filter can be used to check whether wpDiscuz should load.

Changelog

Aadded starting from 7.0.0 version.

Parameters

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

Usage

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

Was this article helpful to you? Yes 2 No