Adds the ability to add slider to the colorpicker by adding the option to the field options array.
Update the file field type to work within custom field context by allowing the passing of override arguments to CMB2 Types file method..
The render class can also be overridden with the cmb2 render class {$fieldtype} filter, which is passed the render class name as well as CMB2 Types object, but this should be used, and within the context of your project's boxes fields or you could break other plugins themes CMB2 fields..
CMB2 now has WP REST API endpoints for displaying your boxes and fields data, as well as registers rest fields in the existing post, user, term, and comment endpoints.
CMB2 Field object instances will now have property and method to enable access to the CMB2 parent instance, in places like field callbacks and filters )..
Most metabox registration needs to happen if in wp-admin, so there is no reason to register them when loading the front-end cmb2 init still exists to register metaboxes that will be used on the front-end or used on both the front and back-end.
See cmb2.io api. cmb2 print metabox form, cmb2 metabox form, and cmb2 get metabox form helper functions now accept two new parameters parameter to set that in the $cmb object. parameter to explicitly disable CMB JS enqueue.
The callback gets passed array of all the field parameters as the first argument, and the field object as the second argument ..
New API includes new cmb2 box function to generate new metabox, and returns $cmb object to add new fields and CMB2 add group field methods )..
Entirely translation-ready with full translations Spanish, French, Finnish, Swedish, and English..
Read more