manifest / integrations / wp-graphql-metabox
WPGraphQL Meta Box Integration
WPGraphQL for Meta Box
by hsimah · github.com/hsimah-services/wp-graphql-metabox · website
★ 28stars
678composer installs
3forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/hsimah-services/wp-graphql-metabox/archive/refs/heads/master.zipAlso on Packagist as hsimah-services/wp-graphql-metabox:
composer require hsimah-services/wp-graphql-metaboxFrom the readme
WPGraphQL-MetaBox: WPGraphQL provider for Meta Box
Quick Install
Download and install like any WordPress plugin.
Documentation
The WPGraphQL documentation can be found here.
- Requires PHP 7.3+
- Requires WordPress 5.4+
- Requires WPGraphQL 1.1.3+
- Requires Meta Box 5.3.8+
- Requires MB User Meta extension for User fields
Overview
This plugin provides an integration for Meta Box and WPGraphQL.
By simply adding an extra graphqlname property to the field registration the field will be exposed in the GraphQL schema.
Usage:
This assume you know how to expose custom post types in WPGraphQL - read their documentation for further info.
Using Meta Box, define a custom field. Copy and paste the generated code to your functions.php (or where ever you store your custom code).
wp-graphql-metabox options
|option|type|effect|
|--|--|--|
|graphqlname|string|adds the field to the GraphQL object(s) identified in posttypes|
|graphqlmutate|boolean|adds the field to the GraphQL object(s) create and update mutation input|
Add in the graphqlname to the field definition:
That's it. The field randomNumber will be exposed on the type post. This will work for any custom post types you may creat
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 0.4.0 | Jan 4, 2021 |
| 0.3.1 | Jan 4, 2021 |
| 0.3.0 | Jan 2, 2021 |
| 0.2.3 | Nov 9, 2020 |
| 0.2.2 | May 3, 2020 |
| 0.2.1 | Apr 20, 2020 |
| 0.2.0 | Apr 19, 2020 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.