Use this generator to create fully functional CMB2 metaboxes easily. Save your time from boring works.
Metabox properties. Use this section to define the scope of metabox, set it's id and other things.
Where this metabox will be shown? like 'page','post' etc
This function will hook into cmb2_init action
Start with an underscore to hide fields from custom fields list
Generate Metabox fields from this section
Now you're happy, eh? Just copy-paste from these boxes below and go back to work, pronto!