graphql_pre_restrict_endpoint
apply_filters( 'graphql_pre_restrict_endpoint', $restrict_endpoint );
Allows overriding the default graphql_restrict_endpoint behavior. Returning anything other than null will skip the default restrict checks.
- Type: filter
- Group: Authentication and Authorization
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Server/ValidationRules/RequireAuthentication.php
Parameters
$restrict_endpoint(bool|null): Whether to restrict the endpoint. Defaults to null
Source
apply_filters( 'graphql_pre_restrict_endpoint', $restrict_endpoint );
Related
RequireAuthentication::isEnabled()inplugins/wp-graphql/src/Server/ValidationRules/RequireAuthentication.php:34