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