graphql_setting_field_value

apply_filters( 'graphql_setting_field_value', $value, $setting_field, $this->group_key );

Filters the resolved value of a single settings field before it is returned in the Schema. This gives extensions a seam to normalize or override a setting’s resolved value without adding one-off special cases to the core resolver.

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

Parameters

  • $value (mixed): The resolved (and type-cast) value of the setting field.
  • $setting_field (array<string,mixed>): The setting field config, including its key and type.
  • $group_name (string): The name of the settings group the field belongs to.

Source

apply_filters( 'graphql_setting_field_value', $value, $setting_field, $this->group_key );