Homepage
Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

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)

Params

  • $post_types (array): Array of post types