post_class
post_class ( $css_class = '', $post = null )
Parameters:- (string|string[]) css_class Optional. One or more classes to add to the class list. Default empty.
- (int|WP_Post) post Optional. Post ID or post object. Defaults to the global `$post`.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Displays the classes for the post container element.