graphql_show_admin

This filter can be used to disable or enable the GraphQL Admin pages with code.

If the admin pages have been de-activated from the Settings UI, the only way to re-enable to Settings pages is by using this filter.

apply_filters( 'graphql_show_admin', bool $enabled );

Params

  • $enabled (bool): Whether the GraphQL admin should be enabled