Index: src/wp-includes/post-template.php
===================================================================
--- src/wp-includes/post-template.php	(revision 38699)
+++ src/wp-includes/post-template.php	(working copy)
@@ -507,6 +507,17 @@

 	// All public taxonomies
 	$taxonomies = get_taxonomies( array( 'public' => true ) );
+
+	/**
+	 * Filters which Taxonomies that will have it's terms returned on the `get_post_class`.
+	 *
+	 * By default it will use the public taxonomies.
+	 *
+	 * @since 4.7.0
+	 *
+	 * @param array   $taxonomies Public taxonomy names to show term classes for, array of strings.
+	 * @param WP_Post $post       Post object.
+	 * @param array   $classes    The classes that are going to be returned so far.
+	 */
+	$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 ) {
