WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about post_class_taxonomies

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post-template.php apply_filters 563 /**
* Filters the taxonomies to generate classes for each individual term.
*
* Default is all public taxonomies registered to the post type.
*
* @since 6.1.0
*
* @param string[] $taxonomies List of all taxonomy names to generate classes for.
* @param int $post_id The post ID.
* @param string[] $classes An array of post class names.
* @param string[] $class An array of additional class names added to the post.
*/

Hook Parameters

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