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

do_action('comment_post') is found 1 times:

  • /wp-includes/comment.php line 2348
    	 * @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: