CMB2 2.5.0, and WordPress 5.0

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.

Huge thank you to the contributors for this release, manzoorwanijk, lipemat, tw2113, and rianrietveld.

Update, 12/10/2018: We have released a 2.5.1 hotfix to address some issues/incompatibilities.