Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_comment_type [ WordPress Function ]

get_comment_type ( $comment_ID = 0 )
Parameters:
  • (int) $comment_ID The ID of the comment for which to get the type. Optional.
Uses:
Returns:
  • (string) The comment type
Defined at:



Retrieve the comment type of the current comment.

Source


<?php
function get_comment_type$comment_ID ) {
    
$comment get_comment$comment_ID );
    if ( 
'' == $comment->comment_type )
        
$comment->comment_type 'comment';

    return 
apply_filters('get_comment_type'$comment->comment_type);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics