nsrosenqvist / cmb2-dynamic-metaboxes
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:wordpress-plugin
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 }