wpDiscuz 7 API Documentation

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

wpdiscuz_manage_post_cache_clearing

This filter can be used for choosing if the wpDiscuz functions for post cache cleaning should be worked or not.

Changelog

Added in version 7.0.3

Parameters

1. $clear (type: bool) – if the wpDiscuz functions for post cache cleaning should work or not.

Usage

add_filter("wpdiscuz_manage_post_cache_clearing", function ($clear) {
    return false;
});

Was this article helpful to you? Yes No