# 0069-actions-graphql-get-schema

<!--
This file is auto-generated by scripts/hooks/generate-hook-docs.js.
Do not edit manually.
-->
---
title: graphql_get_schema
hookType: action
hookGroup: schema-registration
plugin: wp-graphql
---

# graphql_get_schema

```php
do_action( 'graphql_get_schema', self::$schema );
```

Fire an action when the Schema is returned

- **Type:** action
- **Group:** Schema Registration
- **Since:** 1.1.5
- **Source File:** `plugins/wp-graphql/src/WPGraphQL.php`

## Parameters

- `$schema` (`\WPGraphQL\WPSchema`): The executable schema.

## Source

- [`plugins/wp-graphql/src/WPGraphQL.php:924`](https://github.com/wp-graphql/wp-graphql/blob/main/plugins/wp-graphql/src/WPGraphQL.php#L924)

```php
do_action( 'graphql_get_schema', self::$schema );
```

## Related

- `WPGraphQL::get_schema()` in [`plugins/wp-graphql/src/WPGraphQL.php:924`](https://github.com/wp-graphql/wp-graphql/blob/main/plugins/wp-graphql/src/WPGraphQL.php#L924)