Instead of re-ordering your plugins to load in a specific order, have each of them that requires some other plugin to be loaded to defer their initialization until the “plugins_loaded” action hook.
In other words, when a plugin with a dependency is included and ran, it shouldn’t do anything directly. Instead, it should have functions, and then add_action calls to hook those functions to plugins_loaded. That function that is called later can do the class_exists check and act accordingly.
Related Posts:
- Get Latest Plugin Version from WP API
- Updates for a private plugin?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- Disable update notification for individual plugins
- How can I stop WordPress from prompting me to enter FTP information when doing updates?
- what is the correct way to update a plugin via tortoise svn to the repository?
- An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration
- I Want to Get A Plugin Version Number Dynamically
- Can I upgrade a plugin to a specific version?
- How to implement WordPress plugin update that modifies the database?
- How to create custom message on plugin update
- What are the best practices for updating?
- Update plugin from personal API
- Get a list of all WordPress.org Plugins?
- Why “Contact Form 7” doesn’t update PHPmailer library?
- [Plugin WPML] : How to create a translation of a post using the WPML API?
- Can’t install new plugins because of the error “Could not create directory”
- Removing the “Your backup folder MIGHT be visible to the public” Message Generated by the WP-DBManager Plugin
- What WordPress API function lists active/inactive plugins?
- How to create a WordPress plugin for another wordpress plugin?
- Managing WP Core & Plugin Updates for Clients
- Error when updating plugins by FTP “Unable to locate WordPress Content directory (wp-content).”
- Preventing a plugin from updating
- Plugin update error message
- Customize plugin update “new version is available” text
- Change Page’s Tag Using functions.php File
- How to build an API as a plugin
- Which files get updated in a plugin update?
- How wordpress detects a plugin update
- A Way to Auto update plugins using cron?
- Overwrite textdomain of plugins by default – Lost Translation
- Plugin updates are not shown
- Filter Hook on plugin update
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- Updating WordPress – the best approach (updating wp core, plugins and db)
- Remove update messages for deactivated plugins
- How get list of updates of wp site?
- How do I retrieve a list of popular plugins using the WordPress.org Plugin API?
- plugin wants to update to wrong plugin
- How to update WordPress plugin readme.txt description page without triggering a plugin update?
- How to notify users of blog updates a la Admin Plugin Update notifications?
- WordPress error – PHP Fatal error: Uncaught Error: Call to undefined function register_block_type_from_metadata()
- How can a plugin run a script after being updated in MultiSite?
- Automatic updates not working/plugins not installing
- Using custom code, how can I fetch data from the WordPress plugin repo?
- Can’t use /wp-json/wp/v2/plugins API endpoint even as administrator
- How to update plugin without overwrite custom code
- Hook (upgrader_process_complete) running moment
- What Triggers a Plugin Update Alert
- Send Data to WordPress from kiosk
- WordPress plugin search does not work and updates are not shown, VPS install
- Multisite functions to communicate with individual site functions
- How do I prevent Plugin updates from clobbering user edits?
- Force wordpress to request for FTP Info on theme/plugin install/update
- Under which circumstances is the .maintenance file not deleted?
- Does the WordPress API have Modal Dialogs
- Why users disable the WordPress update?
- Plugin child folder?
- Upgrading WordPress 4.0 asks for FTP password
- Plugins won’t update when WordPress says they’re updated
- An Unexpected HTTP Error occurred during the API request
- REST-API: extend media-endpoint
- All Updated Plugins Disappeared
- Custom routing for plugins
- Advanced Integration – WordPress + YOURLS
- Do extra plugin files get deleted during an upgrade?
- Override plugin functions in functions.php
- Skip file when plugin updated
- Get Plugin Information from Multiple Sites Externally
- Could not create directory
- What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory?
- How to migrate from Mark Jaquith’s Subscribe to Comments plugin to Gurken’s new version?
- Create or Update thousands of woocommerce products via PHP
- Looking for a solution – slightly convoluted problem
- Keep user’s privileges on accessing contents in JSON response
- Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update
- Can’t use the built-in wordpress install/upgrade plugin feature [closed]
- Can I upgrade plugins via FTP?
- How can we deal with unmaintained plugins with vulnerabilities?
- Function to see how many plugins on a site need updating
- How to create a plugin that notifies for updates?
- Where to access the available plugin/WordPress updates?
- ‘Customize’ button in admin bar for CSS
- Are there hooks for WordPress updates?
- Best way to hook a custom url?
- How to make my plugin able to be updated from admin panel?
- How to update WordPress plugins to latest using SVN
- How can I add an options page for my class based plugin?
- Sending WP posts to external API
- Elementor\Scheme_Typography’ not found [closed]
- Force Plugin Updates: “Update Failed: Plugin update failed.” after update one plugin
- CMB2 Repeatable Group & JSON API
- Theme and plugin install or update display error in localhost
- What is the correct way to update both WP/plugins/themes without breaking the site?
- How do I create a custom add media button modal?
- Can’t update/install plugins or WordPress
- Pushing out updates to multiple installs?
- WordPress JSON API remove posts from a specific category
- How to update plugins with database updates if I use svn
- How to access data in wordpress database externally using php