apply_filters( 'post_class', string[] $classes, string[] $css_class, int $post_id )

Filters the list of CSS class names for the current post.


Parameters

$classes

An array of post class names.

$css_class

An array of additional class names added to the post.

$post_id

The post ID.


Source

File: wp-includes/post-template.php

View on GitHub



Changelog

Changelog
Version Description
2.7.0 Introduced.