wpDiscuz 7 API Documentation

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

wpdiscuz_save_options

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

Changelog

since 7.0.0 version

Usage

add_action("wpdiscuz_save_options", function () {
    if ($_POST["wpd_tab"] === WpdiscuzCore::TAB_GENERAL) {
        $customOptionValue = isset($_POST[WpdiscuzCore::TAB_GENERAL]["customOptionValue"]) ? absint($_POST[WpdiscuzCore::TAB_GENERAL]["customOptionValue"]) : 0;
    }
});

Was this article helpful to you? Yes No