PHPackages                             josephfusco/wpgraphiql-query-injector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. josephfusco/wpgraphiql-query-injector

ActiveWordpress-plugin[API Development](/categories/api)

josephfusco/wpgraphiql-query-injector
=====================================

Inject a custom query and variables into the WPGraphiQL editor

1.0.0(2y ago)04GPL-3.0-or-laterPHP

Since Oct 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/josephfusco/wpgraphiql-query-injector)[ Packagist](https://packagist.org/packages/josephfusco/wpgraphiql-query-injector)[ RSS](/packages/josephfusco-wpgraphiql-query-injector/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

WPGraphiQL Query Injector [![Latest Stable Version](https://camo.githubusercontent.com/5c6c7f6e9df48be7e7fb4fb9892d56ed9eaecf653c306116a1dbeb177f3b7743/68747470733a2f2f706f7365722e707567782e6f72672f6a6f73657068667573636f2f7770677261706869716c2d71756572792d696e6a6563746f722f762f737461626c65)](https://packagist.org/packages/josephfusco/wpgraphiql-query-injector)
==========================================================================================================================================================================================================================================================================================================================================================================

[](#wpgraphiql-query-injector-)

Overview
--------

[](#overview)

WPGraphiQL Query Injector is a WordPress plugin designed to inject custom GraphQL queries and variables into your WPGraphiQL editor. The plugin aims to provide a straightforward way to populate the WPGraphiQL editor within a [WordPress Playground](https://developer.wordpress.org/playground/) environment.

Usage
-----

[](#usage)

Once the plugin is activated, it will automatically populate the WPGraphiQL editor with predefined queries and variables. You can modify these by applying WordPress filters.

### Filters

[](#filters)

#### `wpgraphiql_query`

[](#wpgraphiql_query)

Filter the GraphiQL Query input.

```
add_filter( 'wpgraphiql_query', function() {
    return
