wpDiscuz 7 API Documentation

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

wpdiscuz_is_comment_editable

This hook allows you to disable the comment editing.

Changelog

Added in version 7.0.8

Parameters

1. $isEditable (type: bool) - either the comment should be edited or not
2. $comment (type: WP_Comment object) - the object of the current comment

Usage

add_filter("wpdiscuz_is_comment_editable", function ($isEditable, $comment) {
    return false;
}, 10, 2);