graphql_single_name ) ] ) ) { $values[ WPEnumType::get_safe_name( $taxonomy_object->graphql_single_name ) ] = [ 'value' => $allowed_taxonomy, 'description' => sprintf( __( 'Taxonomy enum %s', 'wp-graphql' ), $allowed_taxonomy ), ]; } } } register_graphql_enum_type( 'TaxonomyEnum', [ 'description' => __( 'Allowed taxonomies', 'wp-graphql' ), 'values' => $values, ] ); } }