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);