Filter hook 'post_class'

in WP Core File wp-includes/post-template.php at line 607

Description

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

Occurrences

Filename Line Number
wp-includes/post-template.php 607

Parameters

Type Name Description
string[] $classes An array of post class names.
string[] $css_class An array of additional class names added to the post.
int $post_id The post ID.

PHP Doc

/**
	 * Filters the list of CSS class names for the current post.
	 *
	 * @since 2.7.0
	 *
	 * @param string[] $classes   An array of post class names.
	 * @param string[] $css_class An array of additional class names added to the post.
	 * @param int      $post_id   The post ID.
	 */