wpDiscuz 7 API Documentation

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


This hook allows you to disable the comment editing.


Added in version 7.0.8


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


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

Was this article helpful to you? Yes No