graphql_post_entities_allowed_post_types

Define the $allowed_post_types to be exposed by GraphQL Queries Pass through a filter to allow the post_types to be modified (for example if a certain post_type should not be exposed to the GraphQL API)

apply_filters( 'graphql_post_entities_allowed_post_types', array $post_types );

Params

  • $post_types (array): Array of post types