graphql_normalized_settings

apply_filters( 'graphql_normalized_settings', $normalized_settings, $type_registry );

Filter the normalized settings map before the read and mutation surfaces are derived from it. This is the seam for exposing options WordPress never registers via register_setting(): seed an entry here, in memory, instead of mutating the global settings registry. Entries follow the register_setting() args shape (group, type, description, …) plus a key holding the option name, and support WPGraphQL-specific config: graphql_readonly (bool) rejects updates to the setting through the updateSettings mutation, and graphql_resolve (callable) normalizes the setting’s resolved value.

  • Type: filter
  • Group: Settings and Admin
  • Since: 2.18.0
  • Source File: plugins/wp-graphql/src/Data/DataSource.php

Parameters

  • $normalized_settings (array<string,array<string,mixed>>): The normalized settings map, keyed by option name.
  • $type_registry (\WPGraphQL\Registry\TypeRegistry|null): The WPGraphQL TypeRegistry, or null when the map is resolved without a built schema.

Source

apply_filters( 'graphql_normalized_settings', $normalized_settings, $type_registry );