wp_unspam_comment [ WordPress Function ]
wp_unspam_comment ( $comment_id )
| Parameters: |
|
| Uses: | |
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: wp_spam_comment, wp_update_comment, wp_untrash_comment, wp_new_comment, wp_count_comments
Removes a comment from the Spam
Source
<?php
function wp_unspam_comment($comment_id) {
if ( ! (int)$comment_id )
return false;
do_action('unspam_comment', $comment_id);
$status = (string) get_comment_meta($comment_id, '_wp_trash_meta_status', true);
if ( empty($status) )
$status = '0';
if ( wp_set_comment_status($comment_id, $status) ) {
delete_comment_meta($comment_id, '_wp_trash_meta_status');
do_action('unspammed_comment', $comment_id);
return true;
}
return false;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- wp_unspam_comment() WordPress function reference, arguments ...
Removes a comment from the Spam. Signature. wp_unspam_comment( $ comment_id ). comment_id: (int) Comment ID. Return. (mixed) False on failure. Source ...
queryposts.com - Docs for page comment.php
mixed wp_unspam_comment (int $comment_id). int $comment_id: Comment ID. wp_untrash_comment (line 1044). Removes a comment from the Trash ...
phpdoc.wordpress.org - Ticket #11442 - WordPress Trac
We could add an argument to wp_untrash_comment() and wp_unspam_comment() which allows one to override the previous status read from the db and set an ...
core.trac.wordpress.org - Detail view of comment.php - yukei.net
wp_unspam_comment() wp_get_comment_status() wp_transition_comment_status() wp_get_current_commenter() wp_insert_comment() wp_filter_comment() ...
lab.yukei.net