wp_get_comment_status [ WordPress Function ]
wp_get_comment_status ( $comment_id )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_set_comment_status, get_comment_statuses, wp_transition_comment_status, get_comment_date, get_comment_text
The status of a comment by ID.
Source
<?php
function wp_get_comment_status($comment_id) {
$comment = get_comment($comment_id);
if ( !$comment )
return false;
$approved = $comment->comment_approved;
if ( $approved == null )
return false;
elseif ( $approved == '1' )
return 'approved';
elseif ( $approved == '0' )
return 'unapproved';
elseif ( $approved == 'spam' )
return 'spam';
elseif ( $approved == 'trash' )
return 'trash';
else
return false;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/wp get comment status « WordPress Codex
Description. The status of a comment by ID. Usage. <?php wp_get_comment_status( $comment_id ) ?> Parameters. $comment_id: (integer) (required) ...
codex.wordpress.org - Function Reference « WordPress Codex
... weblog_ping · wp_allow_comment · wp_count_comments · wp_delete_comment · wp_filter_comment · wp_get_comment_status · wp_get_current_commenter ...
codex.wordpress.org - 常用函数-wp_get_comment_status() | WordPress啦!
常用函数-wp_get_comment_status(). Kage 星期一,2009/04/13 15:58 0条评论. 常用函数-wp_get_comment_status(). 说明. 根据编号检索评论的状态 ...
www.wordpress.la - Wordpress cheat sheet - functions, template / conditional tags for ...
Jan 16, 2010... trackback url list · wp allow comment · wp delete comment · wp filter comment · wp get comment status · wp get current commenter · wp insert ...
www.devdevote.com