wpDiscuz 7 API Documentation

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

wpdiscuz_reset_options

This hook can be used for doing some actions after resetting the options.

Changelog

since 7.0.0 version

Parameters

1. $tab (type: string) – the tab where the options are being reset

Usage

add_action("wpdiscuz_reset_options", function ($tab) {
    if ($tab === WpdiscuzCore::TAB_GENERAL) {
        $customOptionValue = 0;
    }
});

Was this article helpful to you? Yes No 1