wp_insert_comment

wp_insert_comment

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.0.1

do_action('wp_insert_comment') is found 1 times:

  • /wp-includes/comment.php line 2050
    	 *
    	 * @param int        $id      The comment ID.
    	 * @param WP_Comment $comment Comment object.
    	 */
    	do_action( 'wp_insert_comment', $id, $comment );
    
    	return $id;
    }
    
    /**
     * Filters and sanitizes comment data.
    

See this hook used in plugins: