This package is abandoned and no longer maintained. No replacement package was suggested.

1.0.2 2018-06-27 08:04 UTC

This package is auto-updated.

Last update: 2020-06-09 20:09:53 UTC


Implements a switch with which you can enable or disable metaboxes.

$my_metabox = new_cmb2_box(array(
    'id'            => 'my_metabox',
    'dynamic'       => true,

You can then check the state of a metabox with the included helper function:

if (get_metabox_state($post, 'my_metabox') {
    // Do this