On your plugin activation hook method you can check if CMB plugin is installed and/or activated.
You can check this using the following methods:
is_plugin_active()
: only available from within the admin pagesfunction_exists()
orclass_exists()
: available anywhere once they are PHP core methods
If CMB is not installed, you can throw an error message in the panel with instructions to the user on how to install it.
This article has a great explanation on how to check WordPress Plugin Dependencies.
Related Posts:
- WordPress with Composer and different plugins for dev/live.
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- I found this in a plugin. What does it do? is it dangerous?
- Disable /wp-admin/plugin-install.php
- Is there any sort of theme dependency management?
- How to eliminate weird 404 errors in wp-admin?
- How to stop showing admin notice after close button has been clicked
- Is There a WordPress Hook to Filter the Edit Posts View?
- Reordering themes in admin panel
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- Is there any record of installed plugins in the database?
- Best way to manage a lot of pages in Wp Admin [closed]
- Custom admin column disappearing when using Quick Edit [duplicate]
- WordPress admin notice in plugin function
- Using tabs for wordpress plugin
- How do I add to the list table a filter?
- Getting Custom Post Type content from main-site of a Multisite
- how to not show plugin in admin area
- How to make a WP admin button/menu similar to Jetpack Notifications?
- Getting “Fatal error: Call to undefined function wp_cache_get() in option.php” after updating a cache plugin [closed]
- How Restrict access to admin dashboard by specific static ip?
- Edits to plugin not taking effect
- Making menu link open in new tab?
- After activating a Plugin, /wp-admin is no longer accessible
- Weird problems after recovery from security breach
- Function to prevent users from trashing comments
- How to Sort the Favorite Plugins Screen Alphabetically?
- Hide extra menus from WordPress Dashboard
- ‘wp_login’ action hook not working with wp-login.php file
- Ran into a problem installing plugins with Composer
- WordPress takes too much time (100 seconds) to load – Front end and back end
- WordPress on AWS with ELB
- Edit default comments page in WP Admin
- All Users > User List > Update User Meta Field Inline
- Is there an easy way to flag posts in the admin area?
- Default WordPress WP Editor removing style tags and html tag
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- Is it possible make a back-end for WordPress with WordPress?
- Dynamic admin submenu
- Remove ‘Check Compatibility’ from Plugins menu
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Cannot access my wp-admin after installing Gzip compression [closed]
- Plugin settings won’t save changes
- How to make multiple admin pages for one plugin?
- $wpdb update query in plugin only updating one column
- Front-end CSS Library for plugin [closed]
- Locked out of admin panel after installing HC Custom WP-Admin URL [closed]
- Odd /wp-admin/admin-ajax.php entries showing in Wassup
- Display Plugin Panels Outside of Admin Areas
- composer not working on my plugin when i upload it to my website
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- How to remove a CPT Menu from the Root Admin only
- Redirect Plugins.php to New Plugin Page
- Mowing site to another domain in simplest way
- Cannot access WP admin because plugin returns 204
- Install old version of plugin from admin panel?
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]
- I cannot include a file in my plugin settings page
- Error activating certain plugins
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- Elementor pro page editing gives error There has been a critical error on this website. Please check your site admin email inbox for instructions
- how to move a plugin-block in Edit Post page back to bottom area?
- force logged in user to stay in the dashboard
- wp_post not working, keeps redirecting to posts page
- WordPress fatal error from php protocol codes
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Failed GET Request From admin.php To Fetch .min.js File From Unminifed Directory
- Add custom WordPress admin page with pretty url via code
- Get full URL of WP plugin admin page
- WordPress Plugin PHP Not Calling Function
- Admin menu hilighting wrong item for CPT
- Is admin section completely customizable in terms of styling?
- Admin login substantially slower on production server
- wordpress plugin translation not working
- How can I share my wordpress site with a friend?
- Set plugin page as homepage
- Disable plugin on admin page
- The Commercial tab is missing from the Plugins page when trying to update Types 1.7
- Admin Logged In Notify Globaly
- Ajax return 0 in plugin – ajax only used in wp-admin
- Proper Failure of Plugin Activation
- Which filters or actions involve with index page for plugin?
- Ajax in Plugins: returns the whole page
- Gutenberg: Dynamic Block – Show saved data in the editor
- Get post id in Post Page within Wp-admin
- AdBlock blocks my non-advertising sidebar images [closed]
- Combining JS files to one script
- How do I add custom fields to the “Edit page” admin screen?
- Mixed content warning on doctype in admin
- Child Plugin Admin Panel
- Ajax in wordpress [duplicate]
- Notifications Bar on home page only
- List all posts in a particular page [closed]
- WordPress Plugin and other pages not opening
- warning wp session
- Submitting form to admin-post.php WordPress
- /wp-admin/plugins.php takes ages to load, and then 404s
- Stop the user if login from the cookies