post_class
post_class ( $class = '', $post_id = null )
Parameters:- (string|string[]) class One or more classes to add to the class list.
- (int|WP_Post) post_id 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.