graphql_term_entities_allowed_taxonomies
apply_filters( 'graphql_term_entities_allowed_taxonomies', $tax_names, $tax_objects );
Pass through a filter to allow the taxonomies to be modified. For example if a certain taxonomy should not be exposed to the GraphQL API.
- Type: filter
- Group: Schema Registration
- Since: 0.0.2
- Source File:
plugins/wp-graphql/src/WPGraphQL.php
Parameters
$tax_names(string[]): Array of taxonomy names$tax_objects(\WP_Taxonomy[]): Array of taxonomy objects.
Source
apply_filters( 'graphql_term_entities_allowed_taxonomies', $tax_names, $tax_objects );
Related
WPGraphQL::get_allowed_taxonomies()inplugins/wp-graphql/src/WPGraphQL.php:847