diff --git a/plugin.php b/plugin.php
index <HASH>..<HASH> 100644
--- a/plugin.php
+++ b/plugin.php
@@ -172,7 +172,7 @@ function create_initial_rest_routes() {
 
 		foreach ( get_object_taxonomies( $post_type->name, 'objects' ) as $taxonomy ) {
 
-			if ( ! $taxonomy->public ) {
+			if ( empty( $taxonomy->show_in_rest ) ) {
 				continue;
 			}
Use show_in_rest, not public for taxonies that will have endpoints registered