WP Manifestindependent plugin directory
manifest / integrations / wordpress-plugin-wp-graphql-extras

Whitespace WP GraphQL Extras

Wordpress plugin that adds additional types and fields to the GraphQL API

★ 0stars
4.1kcomposer installs

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/whitespace-se/wordpress-plugin-wp-graphql-extras/archive/refs/heads/main.zip

On Packagist as whitespace-se/wordpress-plugin-wp-graphql-extras:

composer require whitespace-se/wordpress-plugin-wp-graphql-extras
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Whitespace WP GraphQL Extras plugin for Wordpress

Wordpress plugin that adds additional types and fields to the GraphQL API.

How to install

If you want to use this plugin as an MU-plugin, first add this to your composer.json:

{
  "extra": {
    "installer-paths": {
      "path/to/your/mu-plugins/{$name}/": [
        "whitespace-se/wordpress-plugin-wp-graphql-extras"
      ]
    }
  }
}

Where path/to/your/mu-plugins is something like wp-content/mu-plugins or web/app/mu-plugins.

Then get the plugin via composer:

composer require whitespace-se/wordpress-plugin-wp-graphql-extras

Features

  • Adds archiveDates and archiveDatesGmt fields to ContentNode
  • Allows public querying of labels and hasArchive on ContentType
  • Adds contentMedia field to NodeWithContentEditor
  • Adds width, height, fileContent and base64Uri fields to MediaItem
  • Adds slug field to ContentType
  • Overrides response headers, allowed request headers and max_query_amount