Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it even easier to add support for custom GF fields #207

Open
justlevine opened this issue Jan 16, 2022 · 0 comments
Open

Make it even easier to add support for custom GF fields #207

justlevine opened this issue Jan 16, 2022 · 0 comments
Labels
type: enhancement ⚡ Improves on an existing feature
Milestone

Comments

@justlevine
Copy link
Member

Is your feature request related to a problem? Please describe.

People choose Gravity Forms for its extensibility. While v0.10 made much progress to help devs support custom form fields, it still requires several filters to make work.

We should explore ways to make this even easier in WPGraphQL for GF, ideally by offering a single function that handles all the heavy lifting.

Describe the solution you'd like

In theory, a register_graphql_gf_form_field() function that resembles its namesake.

The function should let users

  1. Define the necessary GraphQL fields on the autogenerated FormField object.
  2. Define the FormFieldValueInput field for mutation support.
  3. Let you overwrite the autogenerated FormField object type name.

Function arguments and usage should be as similar to core WPGraphQL register_graphql_{} functions as possible.

@justlevine justlevine added the type: enhancement ⚡ Improves on an existing feature label Jan 16, 2022
@justlevine justlevine added this to the Future milestone Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement ⚡ Improves on an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant