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
Search in posts
Search in pages

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 No