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

Filters the taxonomies to generate classes for each individual term.


Description

Default is all public taxonomies registered to the post type.


Top ↑

Parameters

$taxonomies string[]
List of all taxonomy names to generate classes for.
$post_id int
The post ID.
$classes string[]
An array of post class names.
$css_class string[]
An array of additional class names added to the post.

Top ↑

Source

File: wp-includes/post-template.php. View all references

$taxonomies = apply_filters( 'post_class_taxonomies', $taxonomies, $post->ID, $classes, $css_class );


Top ↑

Changelog

Changelog
Version Description
6.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.