Wordpress plugin that adds additional types and fields to the GraphQL API.
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
- Adds
archiveDates
andarchiveDatesGmt
fields toContentNode
- Allows public querying of
labels
andhasArchive
onContentType
- Adds
contentMedia
field toNodeWithContentEditor
- Adds
width
,height
,fileContent
andbase64Uri
fields toMediaItem
- Adds
slug
field toContentType
- Overrides response headers, allowed request headers and
max_query_amount