wpDiscuz 7 API Documentation

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

wpdiscuz_form_init

This hook works when the form is being inited.

Changelog

since 7.0.0 version

Parameters

$form (type: wpdFormAttr\Form object) – the object of the inited form

Usage

add_action("wpdiscuz_form_init", function ($form) {
    $isUserCanComment = $form->isUserCanComment;
});

Was this article helpful to you? Yes 1 No