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

  • AppContext
  • Router
  • Types
  • WPSchema

Class AppContext

Class AppContext Creates an object that contains all of the context for the GraphQL query This class gets instantiated and populated in the main WPGraphQL class

Namespace: WPGraphQL
Package: WPGraphQL
Located at AppContext.php

Methods summary

public
# __construct( )

AppContext constructor.

AppContext constructor.

Properties summary

public string $root_url

Stores the url string for the current site

Stores the url string for the current site

#
public WP_User $viewer

Stores the WP_User object of the current user

Stores the WP_User object of the current user

#
public mixed $request

Stores everything from the $_REQUEST global

Stores everything from the $_REQUEST global

#
public mixed $config

Stores additional $config properties

Stores additional $config properties

#
API documentation generated by ApiGen