Comments (2)
Hey @DesignyourCode
This snippet should work in a cinch:
register_graphql_field(
'GravityformsFormAttributes', // Generated by wp-graphql-content-blocks.
'form',
[
'type' => \WPGraphQL\GF\Type\WPObject\Form\Form::$type,
'description' => __( 'The form object of the node.', 'axewp' ),
'resolve' => static fn ( $source, array $args, AppContext $context ) => ! empty( $source['attrs']['formId'] ) ? \WPGraphQL\GF\Data\Factory::resolve_form( $source['attrs']['formId'], $context ) : null,
]
);
from wp-graphql-content-blocks.
Amazing ⭐ this worked perfectly. Thank you so much
from wp-graphql-content-blocks.
Related Issues (20)
- Fetching plugin blocks HOT 6
- Using the plugin as a submodule with GitHub Actions HOT 7
- `core/list-item` content attribute returns html of nested elements HOT 2
- Full size CoreImageAttributes.width & .height are null HOT 6
- Allow get_block_context_interfaces to be filtered HOT 1
- Custom block attributes not exposed HOT 2
- ${PostType}EditorBlock Interfaces are being registered and implemented with different names HOT 1
- Weird behaviour in queries made via Apollo Client HOT 2
- Downloading the plugin as a composer package does not contain the vendor directory and autoloads HOT 16
- Setup Content Block plugin updates through product info service HOT 1
- Revert CoreImageAttributes width field is of type String but it should be Float HOT 2
- Fix schema linter in Content Blocks repo
- Getting 500 error when using this plugin with WPGraphQL HOT 13
- CorePostTerms doesn't expose any way to ask for the terms HOT 9
- Content Blocks: Add configuration for running tests locally HOT 1
- Reusable block isn't resolved inside columns HOT 3
- CoreImage give wrong caption when lightbox is enable HOT 2
- Feature: Add support for Xpath selectors HOT 1
- Can't retrieve Core Navigation data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-graphql-content-blocks.