Index: src/wp-includes/post-template.php
===================================================================
--- src/wp-includes/post-template.php	(revision 39474)
+++ src/wp-includes/post-template.php	(working copy)
@@ -507,6 +507,20 @@
 
 	// All public taxonomies
 	$taxonomies = get_taxonomies( array( 'public' => true ) );
+
+	/**
+     * Filters taxonomies that receive classes for individual terms.
+     *
+     * Default is all public taxonomies.
+     *
+     * @since 4.8.0
+     *
+     * @param array   $taxonomies List of all public taxonomy names.
+     * @param WP_Post $post       Current post object.
+     * @param array   $classes    Classes generated to this point.
+     */
+    $taxonomies = apply_filters( 'post_class_taxonomies', $taxonomies, $post, $classes );
+
 	foreach ( (array) $taxonomies as $taxonomy ) {
 		if ( is_object_in_taxonomy( $post->post_type, $taxonomy ) ) {
 			foreach ( (array) get_the_terms( $post->ID, $taxonomy ) as $term ) {
