Skip to content

Releases: hsimah-services/wp-graphql-metabox

0.4.0

04 Jan 21:55
7472d35
Compare
Choose a tag to compare

Enabled group fields!

Groups will generate a new type for the group config. A sample config may look like:

[
  'id' => 'my_group',
  'type' => 'group',
  'name' => 'My Group',
  'graphql_name' => 'MyGroup', // <-- this is the _type_ name and must be unique
  'fields' => [
    [
      'id' => 'group_text_field',
      'type' => 'text',
      'name' => 'Text Field',
     'graphql_name' => 'textField', // <-- this is the _field_ name and must be unique for the group
    ],
    [
      'id' => 'nested_group',
      'type' => 'group',
      'name' => 'Nested Group',
      'graphql_name' => 'MyGroup', // <-- this is the _type_ name and must be unique
      'fields' => [
        [
          'id' => 'nested_text',
          'type' => 'text',
          'name' => 'Nested Text',,
          'graphql_name' => 'textField', // <-- this is the _field_ name and must be unique for the group
        ],
        [
          // this field will not be exposed to the schema
          'id' => 'nexted_checkbox',
          'type' => 'checkbox',
          'desc' => 'Is Active',
        ],
      ],
      'clone' => 1,
      'default_state' => 'expanded',
      'add_button' => 'Add Choice',
    ],
  ],
  'clone' => 1,
  'default_state' => 'expanded',
  'add_button' => 'Add group',
];

0.3.1

04 Jan 21:46
c7e1763
Compare
Choose a tag to compare

Enable cloneable and multiple union types, where a custom field is a link to more than one post type

0.3.0

02 Jan 20:16
2ea15dd
Compare
Choose a tag to compare

Added support for all fields to be cloneable and multiple.

0.2.3

09 Nov 17:53
a8a0171
Compare
Choose a tag to compare

Handle cloned text_list configurations

0.2.2

03 May 19:59
6f2a1c9
Compare
Choose a tag to compare
0.2.2 Pre-release
Pre-release

Handle wysiwyg fields

0.2.1

20 Apr 01:26
b2afd06
Compare
Choose a tag to compare
0.2.1 Pre-release
Pre-release
  • Fix single taxonomy field always returning null
  • Resolve multiple post types for Post field types

0.2.0

19 Apr 17:05
1544b02
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release
  • bump dependencies to latest
  • add in user field resolution