comment_post

comment_post

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('comment_post') is found 1 times:

  • /wp-includes/comment.php line 2348
    2344
    2345
    2346
    2347
    2348
    2349
    2350
    2351
    2352
    2353
    2354
         * @param int        $comment_id       The comment ID.
         * @param int|string $comment_approved 1 if the comment is approved, 0 if not, 'spam' if spam.
         * @param array      $commentdata      Comment data.
         */
        do_action( 'comment_post', $comment_id, $commentdata['comment_approved'], $commentdata );
     
        return $comment_id;
    }
     
    /**
     * Sends a comment moderation notification to the comment moderator.

See this hook used in plugins: