Archives: Filters

  • graphql_term_entities_allowed_taxonomies

    Returns the array of $allowed_taxonomies

    apply_filters( 'graphql_term_entities_allowed_taxonomies', array $allowed_taxonomies );

    Params

    • $allowed_taxonomies (array): Array of allowed taxonomies
  • 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
  • graphql_show_admin

    This filter can be used to disable or enable the GraphQL Admin pages with code.

    If the admin pages have been de-activated from the Settings UI, the only way to re-enable to Settings pages is by using this filter.

    apply_filters( 'graphql_show_admin', bool $enabled );

    Params

    • $enabled (bool): Whether the GraphQL admin should be enabled