Title: Multiple plugins using CMB2
Last modified: May 1, 2017

---

# Multiple plugins using CMB2

 *  Resolved [ChiefAlchemist](https://wordpress.org/support/users/chiefalchemist/)
 * (@chiefalchemist)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/multiple-plugins-using-cmb2/)
 * This is more of a curiosity question than a bug, although maybe it is a bug.
 * While init.php selectively (?) loads CMB2, there didn’t seem to be any consideration
   for the enqueue’ning. That is, the handles remain the same, even if the release
   of the core code has changed. If this is the case, and the js/css is or can be“
   exclusive” to a particular version/release, than it’s possible the wrong files
   could be enqueue’d. That is what gets enqueue’d is not compatible with the php
   version.
 * Furthermore, even if the handles change, the js selectors will continue to be
   the same. It would seem – perhaps – that each metabox’s CMB2 fields needs to 
   have a version-centric wrapper, and then the js for each version need to be mindful
   of that particular selector.
 * Yes? No?
 * TIA –
    mfs

Viewing 1 replies (of 1 total)

 *  Plugin Author [Justin Sternberg](https://wordpress.org/support/users/jtsternberg/)
 * (@jtsternberg)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/multiple-plugins-using-cmb2/#post-9085576)
 * Thanks for asking. Since CMB2 only loads one version of itself, the handle will
   always reference the js/css sources that are in that version. You can test that
   theory by doing a `require` for several versions of CMB2, and seeing that only
   one version (the newest) of the assets are loaded.

Viewing 1 replies (of 1 total)

The topic ‘Multiple plugins using CMB2’ is closed to new replies.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Justin Sternberg](https://wordpress.org/support/users/jtsternberg/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/multiple-plugins-using-cmb2/#post-9085576)
 * Status: resolved