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
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Is there any sort of theme dependency management?
- How to export comments in WordPress?
- How to eliminate weird 404 errors in wp-admin?
- How to stop showing admin notice after close button has been clicked
- Where are plugins located
- Admin menu as submenu from another plugin
- Is There a WordPress Hook to Filter the Edit Posts View?
- Why does WordPress require a ftp server to be running on the webserver to transfer plugins?
- Reordering themes in admin panel
- WordPress Admin is displaying Not Available
- 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?
- Add content to /wp-admin/plugin-install.php admin screens
- Best way to manage a lot of pages in Wp Admin [closed]
- Plugin: How to make links in admin page open up inside of the admin panel
- Custom admin column disappearing when using Quick Edit [duplicate]
- WordPress admin notice in plugin function
- Using tabs for wordpress plugin
- How to remove/hide action links cluttering under specific plugins’ names
- How do I add to the list table a filter?
- Getting Custom Post Type content from main-site of a Multisite
- Adding Visibility Options
- Plugin Development: WordPress processes twice on post update. How to skip process on the first?
- how to not show plugin in admin area
- “Are you sure you want to do this?” when deactivating all plugins in WordPress 4.3.1 [closed]
- 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 to get list of Scripts in Order of Dependencies
- How Restrict access to admin dashboard by specific static ip?
- Questions about brute force attacks on the admin username, coming from amazon IP addresses
- Why would WP-CLI and WP Admin show different list of plugins with updates?
- Edits to plugin not taking effect
- How could I execute my plugin just in frontend (not in backend)
- Where to put my global functions?
- Can’t see login page after migration
- Custom height/width for thickbox in WP Backend
- Hide Theme options and Customize Admin menu
- Making menu link open in new tab?
- After activating a Plugin, /wp-admin is no longer accessible
- Weird problems after recovery from security breach
- How can I create a plugin installation link?
- Cannot access wp-admin after disabling all plugin
- 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
- 404 Error on Activate / Deactivate Plugin
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- Plugin upload to install
- WordPress takes too much time (100 seconds) to load – Front end and back end
- WordPress on AWS with ELB
- Change the backend language of a single plugin
- Edit default comments page in WP Admin
- All Users > User List > Update User Meta Field Inline
- How organize uploaded media in WP?
- Rotating background images with admin options
- Is there an easy way to flag posts in the admin area?
- Show an image in my header.php
- How to hide some section in WordPress under Post
- 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
- Facebook Messager Plugin
- Polylang : Interverting languages after development [closed]
- Is it possible make a back-end for WordPress with WordPress?
- Create tabs in admin options page from custom post type loop
- Dynamic admin submenu
- Remove ‘Check Compatibility’ from Plugins menu
- Plugin allowing users to add articles to a library
- Add menu page issues (permissions & position)
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Cannot access my wp-admin after installing Gzip compression [closed]
- Add sub menu page in your plugin
- Plugin settings won’t save changes
- Is there any way to make myself an admin?
- Full list of registered scripts or styles, but from an admin options page
- 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]
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- Odd /wp-admin/admin-ajax.php entries showing in Wassup
- How can I modify page content in the admin panel?
- Display Plugin Panels Outside of Admin Areas
- How to display terms and conditions in post area?
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- composer not working on my plugin when i upload it to my website
- Import MS-Access data file to make the searchable page
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- Change the layout of action links under the plugin names
- getting notifications about updates only in the “core” page
- How to remove a CPT Menu from the Root Admin only
- Remove value from array within post meta ajax admin
- Is there a better way of handling AJAX requests in WordPress?
- Redirect Plugins.php to New Plugin Page