wp_set_comment_status Wordpress function


Description:

Sets the status of a comment.


Syntax:


Arguments:

(int) $comment_id Comment ID.
(string) $comment_status New comment status, either 'hold', 'approve', 'spam', or 'trash'.
(bool) $wp_error Whether to return a WP_Error object if there is a failure. Default is false.


Return Type:

(bool) False on failure or deletion and true on success.


Define At:

wp-includes/comment.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_set_comment_status


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×