wp_untrash_comment [ WordPress Function ]
wp_untrash_comment ( $comment_id )
| Parameters: |
|
| Uses: | |
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_trash_comment, wp_untrash_post_comments, wp_count_comments, wp_trash_post_comments, wp_unspam_comment
Removes a comment from the Trash
Source
<?php
function wp_untrash_comment($comment_id) {
if ( ! (int)$comment_id )
return false;
do_action('untrash_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_time');
delete_comment_meta($comment_id, '_wp_trash_meta_status');
do_action('untrashed_comment', $comment_id);
return true;
}
return false;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- wp_untrash_comment() WordPress function reference, arguments ...
Removes a comment from the Trash. Signature. wp_untrash_comment( $ comment_id ). comment_id: (int) Comment ID. Return. (mixed) False on failure. Source ...
queryposts.com - Ticket #11442 - WordPress Trac
if ( 'trash' == $old_status ) wp_untrash_comment( $comment ); if ( 'spam' == $ old_status ) ... 'trash' ) wp_untrash_comment( $comment_id ); elseif ( 'spam' ...
core.trac.wordpress.org - Docs for page comment.php
mixed wp_untrash_comment (int $comment_id). int $comment_id: Comment ID. wp_update_comment (line 1452). Updates an existing comment in the database ...
phpdoc.wordpress.org - Detail view of comment.php - yukei.net
wp_blacklist_check() wp_count_comments() wp_delete_comment() wp_trash_comment() wp_untrash_comment() wp_spam_comment() wp_unspam_comment() ...
lab.yukei.net