0232-filters-graphql-require-authentication-allowed-fields
title: graphql_require_authentication_allowed_fields hookType: filter hookGroup: authentication plugin: wp-graphql
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 );
Related
RequireAuthentication::getVisitor()inplugins/wp-graphql/src/Server/ValidationRules/RequireAuthentication.php:77
Recipes
这篇文档对你有帮助吗?
谢谢你的反馈!