wpDiscuz 7 API Documentation

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

wpdiscuz_before_comment_post

This hook can be used for doing some action before posting a comment.

Changelog

since 7.0.0 version

Usage

add_action("wpdiscuz_before_comment_post", function () {
    $customValue = isset($_POST["customValue"]) ? intval($_POST["customValue"]) : 0;
});

Was this article helpful to you? Yes No