Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jason Bahl

    (@jasonbahl)

    @wojciechpaluch Hello ??

    I’m not sure of any Contact Form 7 integrations for WPGraphQL.

    I know there’s a WPGraphQL for Gravity Forms integration (https://github.com/harness-software/wp-graphql-gravity-forms), which you could potentially use if Gravity Forms is an option, or you could browse the code and see if you could use the same approach to integrate with Contact Form 7.

    Thread Starter wojciechpaluch

    (@wojciechpaluch)

    Is integration with graphql Contact Form7 generally possible ?

    Plugin Author Jason Bahl

    (@jasonbahl)

    @wojciechpaluch I’m not that familiar with Contact Form 7’s codebase, but I imagine it should be possible.

    WPGraphQL has many APIs for registering GraphQL Types and Fields to the Schema (https://www.wpgraphql.com/developer-reference/)

    Depending on the project, you could manually register specific queries/mutations to the Schema that match your forms.

    If you want it to be more programmatic, where any form created in CF7 automatically shows in the GraphQL Schema, that would be a heavier lift, but probably possible.

    Depending on how Contact Form 7 is built, you might be able to get a list of the forms and the form fields and map those to WPGraphQL as queries and mutations in the Schema. Then anytime a new form is created in CF7 it would automatically show in the Schema.

    Plugin Author Jason Bahl

    (@jasonbahl)

    @wojciechpaluch There’s a video where Matt Landers was building a contact form solution using Custom Post Types and GraphQL Mutations, and we walk through the process of registering a GraphQL Mutation that allows data to be submitted to WordPress via GraphQL.

    Might be helpful for you: https://www.youtube.com/watch?v=Z33UJJWjYrI

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How use GraphQL for Contact Form 7’ is closed to new replies.