wp_insert_comment

wp_insert_comment

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('wp_insert_comment') is found 1 times:

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