On this page
apply_filters( 'post_class_taxonomies', string[] $taxonomies, int $post_id, string[] $classes, string[] $class )
Filters the taxonomies to generate classes for each individual term.
Description
Default is all public taxonomies registered to the post type.
Parameters
$taxonomiesstring[]-
List of all taxonomy names to generate classes for.
$post_idint-
The post ID.
$classesstring[]-
An array of post class names.
$classstring[]-
An array of additional class names added to the post.
Source
File: wp-includes/post-template.php. View all references
$taxonomies = apply_filters( 'post_class_taxonomies', $taxonomies, $post->ID, $classes, $class );
Related
Used By
| Used By | Description |
|---|---|
| get_post_class() wp-includes/post-template.php | Retrieves an array of the class names for the post container element. |
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_class_taxonomies