Closed WPLake closed 3 months ago
Currently only these field types are supported:
data
array or a callable function)The reason for the reduced support here is that this was originally developed before we had all of our field types converted for React. As a result, these field types are mapped to the supported field types in Gutenberg at the time.
If we get a good React developer helping on the project again, we can consolidate the form fields handling in our Blocks API to completely map over to our Pods DFV API which powers our normal forms (these are different React APIs at the moment).
@sc0ttkclark Thank you for the clarification. I hope that the upcoming improvement to the WP Blocks API in version 6.5 is just the beginning, and eventually, we'll have a fully developed API.
Description
How to replicate the issue:
Current behavior:
Field types other than text are not present in the registered block.
Expected behavior:
All fields passed to the signup function should be present in the block.
Details:
The documentation (https://docs.pods.io/code/blocks-api/) states that "fields in pods_register_block_type() use the same exact field config form as normal Pod fields," and it does not mention any field type restrictions.