IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
547 | 547 | |
548 | 548 | // All public taxonomies. |
549 | 549 | $taxonomies = get_taxonomies( array( 'public' => true ) ); |
| 550 | /** |
| 551 | * Filters the taxonomies to generate classes for each individual term. |
| 552 | * |
| 553 | * Default is all public taxonomies registered to the post type. |
| 554 | * |
| 555 | * @since 6.0.2 |
| 556 | * |
| 557 | * @param array $taxonomies List of all public taxonomies to generate classes for. |
| 558 | * @param array $classes An array of post class names. |
| 559 | * @param array $class An array of additional class names added to the post. |
| 560 | * @param int $post_id The post ID. |
| 561 | */ |
| 562 | $taxonomies = apply_filters( 'post_class_taxonomies', $taxonomies, $classes, $class, $post->ID ); |
550 | 563 | foreach ( (array) $taxonomies as $taxonomy ) { |
551 | 564 | if ( is_object_in_taxonomy( $post->post_type, $taxonomy ) ) { |
552 | 565 | foreach ( (array) get_the_terms( $post->ID, $taxonomy ) as $term ) { |