You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling WP_Block_Type_Registry::get_instance()->get_all_registered() in a script after the registration, you can see that some values are missing.
title
category
icon
description
All the values are correct in the Gutenberg block inserter.
The error seems to come from this portion of function acf_register_block_type.
When calling register_block_type() souldn't we pass all the given args?
IMO we sould try to keep consistency in the block definition between PHP and JS.
The text was updated successfully, but these errors were encountered:
Hi,
When registering a new Gutenberg block in PHP all the params are not passed through the
register_block_type
function.Here is a basic example.
When calling
WP_Block_Type_Registry::get_instance()->get_all_registered()
in a script after the registration, you can see that some values are missing.All the values are correct in the Gutenberg block inserter.
The error seems to come from this portion of
function acf_register_block_type
.When calling
register_block_type()
souldn't we pass all the given args?IMO we sould try to keep consistency in the block definition between PHP and JS.
The text was updated successfully, but these errors were encountered: