0158-filters-graphql-field-resolver-auth-error-message
title: graphql_field_resolver_auth_error_message hookType: filter hookGroup: authentication plugin: wp-graphql
graphql_field_resolver_auth_error_message
apply_filters( 'graphql_field_resolver_auth_error_message', $default_auth_error_message, $field );
Filters the default authorization error message for field resolvers.
- Type: filter
- Group: Authentication and Authorization
- Since: 0.0.1
- Source File:
plugins/wp-graphql/src/Utils/InstrumentSchema.php
Parameters
$default_auth_error_message(string): The default authorization error message.$field(\GraphQL\Type\Definition\FieldDefinition): The field definition being resolved.
Source
apply_filters( 'graphql_field_resolver_auth_error_message', $default_auth_error_message, $field );
Related
InstrumentSchema::check_field_permissions()inplugins/wp-graphql/src/Utils/InstrumentSchema.php:244
这篇文档对你有帮助吗?
谢谢你的反馈!