Filter hook 'post_class_taxonomies'

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

Description

Filters the taxonomies to generate classes for each individual term. Default is all public taxonomies registered to the post type.

Occurrences

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

Parameters

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[] $css_class An array of additional class names added to the post.

PHP Doc

/**
	 * 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[] $css_class  An array of additional class names added to the post.
	*/