graphql_require_authentication_allowed_fields

apply_filters( 'graphql_require_authentication_allowed_fields', $allowed_root_fields, $context );

Filters the allowed root fields

  • Type: filter
  • Group: Authentication and Authorization
  • Since: 0.0.5
  • Source File: plugins/wp-graphql/src/Server/ValidationRules/RequireAuthentication.php

Parameters

  • $allowed_root_fields (string[]): The Root fields allowed to be requested without authentication
  • $context (\GraphQL\Validator\QueryValidationContext): The Validation context of the field being executed.

Source

apply_filters( 'graphql_require_authentication_allowed_fields', $allowed_root_fields, $context );

Recipes