As is customary, the 2.5.1 hot-fix is now out. 😝 github.com/CMB2/CMB2/rele… Update your CMB2s!
CMB2 2.5.0 has been released with some important compatibility updates for WordPress 5.0/Gutenberg. Read more: make.cmb2.io/cmb2-2-5-0-and…
Version 2.5.0 has been released, and contains a few bug fixes and enhancements, but more importantly has some updates to make CMB2 more compatible with WordPress’ new block editor (formerly known as Gutenberg), and is the main reason for this post.
First, an optional
'mb_callback_args' CMB2 box property has been added, which allows defining the
$callback_args passed into
add_meta_box(). This allows using defining the new Gutenberg/block-editor compatibility parameters, which you can read more about here. You can see the example in example-functions.php.
Secondly, an issue was fixed where the
wysiwyg fields’ visual tab wouldn’t save content on Gutenberg/block-editor posts. Thank you to @staurand for their contribution there to get this issue fixed.
Please keep in mind: we have made updates to make CMB2 more compatible, but we are definitely not guaranteeing full feature parity. Long-term, we’ll be looking at being able to define custom blocks in the same way you can define custom boxes.
Update, 12/10/2018: We have released a 2.5.1 hotfix to address some issues/incompatibilities.
@mbootsman I will have to enjoy it from afar, unfortunately. :) If you are there, enjoy!
@mbootsman We have made some updates to make it more compatible, though we’re definitely not guaranteeing full feature parity. Release pending. Long-term, we’ll be looking at being able to define custom blocks in the same way you can define custom boxes.