whitespace-se / wordpress-plugin-wp-graphql-extras
Wordpress plugin that adds additional types and fields to the GraphQL API
Installs: 3 086
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 10
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- composer/installers: ~1.0
Requires (Dev)
- wp-graphql/wp-graphql: ^1.3
- wpackagist-plugin/advanced-custom-fields: ^5.9
README
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
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