Definition:
function get_comment_type( $comment_ID = 0 ) {}
Retrieve the comment type of the current comment.
Parameters
- int $comment_ID: The ID of the comment for which to get the type. Optional.
Return values
returns:The comment type
Defined filters
- get_comment_type
apply_filters('get_comment_type', $comment->comment_type)
Source code
function get_comment_type( $comment_ID = 0 ) { $comment = get_comment( $comment_ID ); if ( '' == $comment->comment_type ) $comment->comment_type = 'comment'; return apply_filters('get_comment_type', $comment->comment_type); }
1336
No comments yet... Be the first to leave a reply!