nsrosenqvist / cmb2-dynamic-metaboxes
This package is abandoned and no longer maintained.
No replacement package was suggested.
Package info
github.com/nsrosenqvist/cmb2-dynamic-metaboxes
Type:wordpress-plugin
pkg:composer/nsrosenqvist/cmb2-dynamic-metaboxes
1.0.2
2018-06-27 08:04 UTC
Requires
- php: >=7.0.0
- cmb2/cmb2: ^2.4.0
This package is auto-updated.
Last update: 2020-06-09 20:09:53 UTC
README
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 }