wpseek.com
A WordPress-centric search engine for devs and theme authors
comment_class › WordPress Function
Since2.7.0
Deprecatedn/a
› comment_class ( $css_class = '', $comment = null, $post = null, $display = true )
Parameters: (4) |
|
Returns: |
|
Defined at: |
|
Codex: | |
Change Log: |
|
Generates semantic classes for each comment element.
Source
function comment_class( $css_class = '', $comment = null, $post = null, $display = true ) { // Separates classes with a single space, collates classes for comment DIV. $css_class = 'class="' . implode( ' ', get_comment_class( $css_class, $comment, $post ) ) . '"'; if ( $display ) { echo $css_class; } else { return $css_class; } }