WPGraphQL
WPGraphQL
BlogREPL
GitHubWordPress Plugin

Developer Reference

  • Overview
  • Actions
  • Filters
  • Functions
  • Recipes
  1. Developer Reference
  2. /Actions
  3. /graphql_init

graphql_init

do_action( 'graphql_init', $instance );

Fire off init action

  • Type: action
  • Group: Request Lifecycle
  • Since: 1.1.5
  • Source File: plugins/wp-graphql/src/WPGraphQL.php

Parameters

  • $instance (\WPGraphQL): The instance of the WPGraphQL class

Source

  • plugins/wp-graphql/src/WPGraphQL.php:206
do_action( 'graphql_init', $instance );

Related

  • WPGraphQL::actions() in plugins/wp-graphql/src/WPGraphQL.php:206

On this page

  • Parameters
  • Source
  • Related
WPGraphQL
WPGraphQL

© 2026 WPGraphQL · GPL-3 Licensed

GitHubWordPress PluginTwitterYouTubeDiscord