apply_filters( 'post_class', array $classes, array $class, int $post_id )

Filters the list of CSS classes for the current post.


Parameters

$classes

(array) An array of post classes.

$class

(array) An array of additional classes added to the post.

$post_id

(int) The post ID.


Source

File: wp-includes/post-template.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.7.0 Introduced.