wpDiscuz 7 API Documentation

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

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;
});

Was this article helpful to you? Yes No