wpDiscuz 7 API Documentation

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

wpdiscuz_clean_all_caches

This action is used to allow clear the cache when the wpDiscuz plugin is updated

Changelog

Added in version 7.0.3

Parameters

1. $newVersion (type: string) – the new version of the wpDiscuz plugin

2. $newVersion (type: string) – the old version of the wpDiscuz plugin

Usage

add_action("wpdiscuz_clean_all_caches", function ($newVersion, $oldVersion) {
    if (function_exists("my_custom_function")) {
        my_custom_function();
    }
}, 10, 2);

Was this article helpful to you? Yes No