query.insert_comment
/
Database /
query.insert_comment
By Amit Singh. Posted on
Title |
: |
query.insert_comment |
Purpose |
: |
Array of arguments for inserting a new comment,
inserts a comment into the database.Note: wp_insert_comment( array $commentdata ) |
Syntax |
: |
|
[php.wp_insert_comment p1={module.args} /] [query.wp_insert_comment p1={module.args} /] |
|
Input Parameters |
: |
comment_post_ID, comment_author_email, comment_author,
comment_content etc… |
Return Value |
: |
It returns: The new comment’s ID |
Example 1 |
: |
Code |
: |
|
[arr.create set="module.args"] [comment_post_ID] [request.comment_post_id /] [/comment_post_ID] [comment_author_email] [request.comment_author_email /] [/comment_author_email] [comment_author] [request.comment_author /] [/comment_author] [comment_content] [request.user-comment /] [/comment_content] [/arr.create] [php.wp_insert_comment p1={module.args} /] [query.wp_insert_comment p1={module.args} /] |
|
Output |
: |
Inserts a comment to the database |
Description |
: |
#Return
(int|false) The new comment’s ID on success, false on failure.Visit: click here! |
|
Last Modified By Praveen Gupta.