wp_insert_comment


wp_insert_comment ( $commentdata )

Parameters:
  • (array) $commentdata { Array of arguments for inserting a new comment.
Returns:
  • (int|false) The new comment's ID on success, false on failure.
Defined at:
Change Log:
  • 4: .

Description

Inserts a comment into the database.

Related Functions

wp_list_comments, wp_new_comment, wp_filter_comment, wp_insert_attachment, wp_insert_post

Top Google Results

User discussions

wpseek mobile