Update CMB2 multicheck field options
-
Hi,
i created a cmb2 multicheck field like this:
$fieldId = $cmb->add_field( array( 'name' => 'Ziele', 'desc' => 'Ziele mit denen dieser Beitrag synchronisiert werden soll.', 'id' => 'vlck_field_sync_to', 'type' => 'multicheck', 'options' => $sites, ) );
Now i have to update the options of the multicheck programmatically in different methods in my functions.php (at runtime).
How can i update the options of my field after creation at runtime?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Update CMB2 multicheck field options’ is closed to new replies.