wpDiscuz 7 API Documentation

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

wpdiscuz_init_options

This hook works when the options are being inited.

Changelog

since 7.0.0 version

Parameters

$options (type: WpdiscuzOptions object) – the options of the wpDiscuz after initing

Usage

add_action("wpdiscuz_init_options", function ($options) {
    $isNativeAjaxEnabled = $options->general["isNativeAjaxEnabled"];
});

Was this article helpful to you? Yes No