wpDiscuz 7 API Documentation

⌘K
  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentat...
  4. Filters
  5. wpdiscuz_get_form

wpdiscuz_get_form

This filter can be used for changing or deleting the loaded form for the post.

Changelog

Since 7.0.0 version

Parameters

$form (type: Form object) - the loaded form for the post

Usage

add_filter("wpdiscuz_get_form", function ($form) {
    $isUserCanComment = $form->isUserCanComment;
    return $form;
});