Overview
  • Namespace
  • Class

Namespaces

  • WPGraphQL
    • Data
    • Type
      • Avatar
      • Comment
        • Connection
      • CommentAuthor
      • EditLock
      • Enum
      • MediaItem
        • Mutation
      • Plugin
        • Connection
      • PostObject
        • Connection
        • Mutation
      • PostType
      • Setting
      • Taxonomy
      • TermObject
        • Connection
        • Mutation
      • Theme
        • Connection
      • Union
      • User
        • Connection
        • Mutation
    • Utils

Classes

  • SettingQuery
  • SettingType

Class SettingType

class SettingType

This sets up the base settingType. Custom settings that are set to "show_in_graphql" automatically use the SettingType and inherit the fields that are defined here. The fields get passed through a filter unique to each type, so each setting can modify it's type schema via field filters.

GraphQL\Type\Definition\ObjectType
Extended by WPGraphQL\Type\WPObjectType
Extended by WPGraphQL\Type\Setting\SettingType
Namespace: WPGraphQL\Type\Setting
Located at Type/Setting/SettingType.php

Methods summary

public
# __construct( string $setting_type )

SettingType constructor.

SettingType constructor.

Parameters

$setting_type
The setting group name

Overrides

WPGraphQL\Type\WPObjectType::__construct

Methods inherited from WPGraphQL\Type\WPObjectType

node_interface(), prepare_fields()

API documentation generated by ApiGen