feat: provide UIs for showing ACF Option Pages in the GraphQL Schema #86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this implement/fix? Explain your changes.
ACF Pro v6.2 introduced a UI for creating ACF Option Pages.
This PR brings support for configuring those option pages to show in GraphQL and set the GraphQL Type Name to represent the options page.
Here's how it works 👇🏻
Configure Options Page
When registering an Options Page via the ACF PRO v6.2+ UI, you can configure the Options Page to show in graphql, and set the GraphQL Type Name.
You will see the data in the columns on the list options page as well:
Assign a Field Group
If you assign an ACF Field Group to the Options Page:
You will be able to see that the ACF Field Group is associated with the Options Page Type
Query the Options
Then you can fill in values for the options page:
And query for the options in GraphQL:
Does this close any currently open issues?
closes #83
Any other comments?
Folks using JSON or PHP to register options pages can still do so as they did before, adding fields
graphql_type_name
andshow_in_graphql
: