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
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- 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
- Can I upgrade a plugin to a specific version?
- How to implement WordPress plugin update that modifies the database?
- What are the best practices for updating?
- Get a list of all WordPress.org Plugins?
- 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
- Error when updating plugins by FTP “Unable to locate WordPress Content directory (wp-content).”
- Plugin update error message
- Customize plugin update “new version is available” text
- How to build an API as a plugin
- 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?
- How get list of updates of wp site?
- plugin wants to update to wrong plugin
- How to notify users of blog updates a la Admin Plugin Update notifications?
- Automatic updates not working/plugins not installing
- Using custom code, how can I fetch data from the WordPress plugin repo?
- What Triggers a Plugin Update Alert
- Send Data to WordPress from kiosk
- Multisite functions to communicate with individual site functions
- Force wordpress to request for FTP Info on theme/plugin install/update
- Upgrading WordPress 4.0 asks for FTP password
- An Unexpected HTTP Error occurred during the API request
- Advanced Integration – WordPress + YOURLS
- Do extra plugin files get deleted during an upgrade?
- Override plugin functions in functions.php
- How can we deal with unmaintained plugins with vulnerabilities?
- Function to see how many plugins on a site need updating
- Where to access the available plugin/WordPress updates?
- How can I add an options page for my class based plugin?
- Sending WP posts to external API
- Force Plugin Updates: “Update Failed: Plugin update failed.” after update one plugin
- CMB2 Repeatable Group & JSON API
- Can’t update/install plugins or WordPress
- How to access data in wordpress database externally using php
- What keys are needed when passing the icons array to plugins_api()?
- `plugins_api()`: why does a commercial plugin changelog link result in a tailing plugins repo check and 500 error? [closed]
- Limit post creation by role
- After upgrade to php 7 plugin/them updates broke [closed]
- Some recent plugin updates have failed “Could not create directory”
- WordPress does not show products when the value of post_parent is not 0
- How to test ‘upgrader_process_complete’ hook in plugin development?
- What happens if I don’t update my plugins?
- Redirect to another page using contact form 7? [closed]
- Batch update of WordPress Plugins
- My homemade plugin is trying to update to someone else’s plugin
- WordPress stats API key
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- How to get plugin name from plugin file location
- What is a rock solid development and deployment workflow? [closed]
- Getting a Page via its post-name using WP REST API v2 and Postman
- Integrating boxtal PHP library into a custom WordPress Plugin
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- Custom API plugin to execute 3rd party API to retrieve data
- Regularity of Checking for plugin updates? [duplicate]
- Api external with wordpress
- How can ι create my own (custom) WordPress table/list?
- How to add update function to plugin without adding it to https://wordpress.org/plugins/ [closed]
- How (or where) do I get wordpress plugin update download link?
- Problem after updating plugins
- Including content from legacy app: via plugin or custom content?
- Why may one avoid Jetpack plugin? [closed]
- Manualy Updated WordPress Error
- How to convert Currency from USD to other IP Based currency in Php function
- Escape commas in REST API
- Plugin updated pushed with git break site
- How to use third-party SendGrid Email Validation API in Gravity Forms?
- is it possible to fetch data from a remote api while admin is writing a new post?
- There has been a critical error on your website
- Unable to update plugins or log out
- wp_remote_post To external API multiple values with the same key
- Gutenberg editor in WordPress 5.0.3 /wp-json/wp/v2/pages/4713/autosaves?_locale=user 500 (Internal Server Error)
- wp rest api (v2) filter not working (404 error – rest_no_route)
- Making sure updates didn’t break anything
- Can Hosting affect a plugin from working properly?
- Pause form submissions while upgrading plugins
- WordPress Plugin Install / Update Problem
- Update page (update-core.php) & Plugins page (plugins.php) revert to homepage
- Convert HTML5/CSS3 site to WordPress Theme (need a lot of plugins) or just use the API?
- Integrating a hosted app with wordpress using the API
- Plugin that uses AngularJS tutorial
- Which part of the plugin to change so the updater won’t register the next version?
- Import tumblr post to wordpress blog
- Updates for a private plugin?
- Trouble After Update, Removing Plugin
- Using one-click plugin upgrade feature securely on suexec server
- Manually updating a plugin , is it overriding the previous settings of the plugin?
- How to add/manage Followers (email subscribers) via API?
- How to import data from another website using an API link?
- Am having issues intergrating this api into my wordpress site, any help please?
- Store large dataset in WordPress installation temporary
- how to update wordpress plugin programmatically using plugin path
- Is it possible to create post in wordpress using postman?
- On WordPress.org Plugin repository, Last Updated Date doesn’t match with Plugin Version Update Date
- What’s the best way to update my WordPress theme to Elementor?