Glossary Term
comment_class()
3 tags
1 category
comment_class() — Generates semantic classes for each comment element.
Inputs: $css_class (string|string[]): Optional. One or more classes to add to the class list. Default empty. $comment (int|WP_Comment): Optional. Comment ID or WP_Comment object. Default current comment. $post (int|WP_Post): Optional. Post ID or WP_Post object. Default current post. $display (bool): Optional. Whether to print or return the output. Default true.
Returns string|void: Comment classes if $display is false, nothing otherwise.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
