PHPackages                             hsimah-services/wp-graphql-metabox - 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. hsimah-services/wp-graphql-metabox

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

hsimah-services/wp-graphql-metabox
==================================

WPGraphQL integration for Metabox

0.4.0(5y ago)276743[8 issues](https://github.com/hsimah-services/wp-graphql-metabox/issues)GPL-3.0-or-laterPHPPHP ^7.1||^8.0

Since Nov 9Pushed 1y ago5 watchersCompare

[ Source](https://github.com/hsimah-services/wp-graphql-metabox)[ Packagist](https://packagist.org/packages/hsimah-services/wp-graphql-metabox)[ RSS](/packages/hsimah-services-wp-graphql-metabox/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (7)DependenciesVersions (6)Used By (0)

WPGraphQL-MetaBox: WPGraphQL provider for Meta Box
==================================================

[](#wpgraphql-metabox-wpgraphql-provider-for-meta-box)

Quick Install
-------------

[](#quick-install)

Download and install like any WordPress plugin.

Documentation
-------------

[](#documentation)

The WPGraphQL documentation can be found [here](https://docs.wpgraphql.com).

- 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
--------

[](#overview)

This plugin provides an integration for [Meta Box](https://metabox.io/) and [WPGraphQL](https://www.wpgraphql.com/).

By simply adding an extra `graphql_name` property to the field registration the field will be exposed in the GraphQL schema.

Usage:
------

[](#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

[](#wp-graphql-metabox-options)

optiontypeeffect`graphql_name``string`adds the field to the GraphQL object(s) identified in `post_types``graphql_mutate``boolean`adds the field to the GraphQL object(s) create and update mutation inputAdd in the `graphql_name` to the field definition:

```
$meta_boxes[] = [
    'title' => 'Extra Fields',
    'id' => 'extra-fields',
    'post_types' => [
        0 => 'post',
    ],
    'context' => 'after_title',
    'priority' => 'high',
    'autosave' => true,
    'fields' => [
        [
            'id' => 'a_random_number',
            'name' => 'A Random Number',
            'type' => 'number',
            'std' => 5,
            'columns' => 2,
            'size' => 3,
            'graphql_name' => 'randomNumber',
            'graphql_mutate' => true
        ],
    ],
];

```

That's it. The field `randomNumber` will be exposed on the type `post`. This will work for any custom post types you may create.

**NB**: You must expose custom types by adding `show_in_graphql` to the configuration of the CPT.

A simple query might look like this:

```
query {
    posts {
        nodes {
            title
            content
            randomNumber
        }
    }
}

```

Limitations
-----------

[](#limitations)

Currently the plugin only supports custom fields on `post` and `user` types (ie no Settings Pages).

Currently the plugin only supports using the following Meta Box types:

- `taxonomy`
- `taxonomy_advanced`
- `switch`
- `checkbox`
- `checkbox_list`
- `background`
- `color`
- `custom_html`
- `date`
- `heading`
- `datetime`
- `oembed`
- `password`
- `radio`
- `textarea`
- `time`
- `select`
- `email`
- `tel`
- `text`
- `url`
- `wysiwyg`
- `fieldset_text`
- `select_advanced`
- `text_list`
- `key_value`
- `number`
- `range`
- `single_image`
- `user`
- `post`
- `group`If you require a field which is not supported please feel free to submit an issue (or better yet, a PR!)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Total

4

Last Release

1960d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/895ef5d827a0d137430adeedb3c99a260d8e2c7ac5e193aaf0e114d46e7d09dd?d=identicon)[hsimah](/maintainers/hsimah)

---

Top Contributors

[![hsimah](https://avatars.githubusercontent.com/u/10041901?v=4)](https://github.com/hsimah "hsimah (29 commits)")[![abecuwedahive](https://avatars.githubusercontent.com/u/117634923?v=4)](https://github.com/abecuwedahive "abecuwedahive (3 commits)")[![rodrigo-arias](https://avatars.githubusercontent.com/u/11416255?v=4)](https://github.com/rodrigo-arias "rodrigo-arias (2 commits)")[![NilsEngelbach](https://avatars.githubusercontent.com/u/9214413?v=4)](https://github.com/NilsEngelbach "NilsEngelbach (1 commits)")

### Embed Badge

![Health badge](/badges/hsimah-services-wp-graphql-metabox/health.svg)

```
[![Health](https://phpackages.com/badges/hsimah-services-wp-graphql-metabox/health.svg)](https://phpackages.com/packages/hsimah-services-wp-graphql-metabox)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
