You could just add a check for is_admin()
and current_user_can("update_plugins")
to make sure you’re running only for admin users that are currently in wp-admin. Any user browsing the front end won’t notice anything, logged in or not.
You will probably also want to make sure that this runs only once to avoid race conditions that would produce database errors e.g. running the same ALTER TABLE add ...
twice.
Related Posts:
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- ‘Global’ settings page for multisite plugin
- How to do I get a list of active plugins on my wordpress blog programmatically?
- How to add field for new site-wide option on Network Settings screen?
- Can I upgrade a plugin to a specific version?
- Making my plugin multi-site compatible
- How to tell if a plugin is multisite compatible?
- Plugin upgrading: Widget settings
- How to customize a plugin whilst maintaining ability to upgrade
- Plugin Development: WPMU or WP?
- WordPress sharding: which multi-DB plugin to use?
- Auto Load Plugin Hooks inside Must Use Plugin
- How Is Network Activate Different From Activate (by Implementation)?
- How to get the main blog’s id and db prefix from a mu plugin?
- How to avoid plugin name conflicts from the upgrade notifier?
- Inherit plugin settings to new site in Multisite
- How to check plugin compatibility before upgrading WordPress
- What is a Network Activated Plugin Exactly?
- How to install plugins in individual sites on a wordpress network?
- How to Check If A Plugin Is Enabled Through API?
- Fatal error: Call to undefined function wp_get_current_user()
- How to tell if plugin has been network activated
- How does WordPress Multisite know that a Plugin is installed?
- How to run Two WordPress blogs with different themes and with single database and same content
- A Way to Auto update plugins using cron?
- Using Vagrant for customizable WordPress Multi-sites [closed]
- Can I enable/disable/hide plugins on a per-site basis in multisite?
- Updating WordPress – the best approach (updating wp core, plugins and db)
- How to enable Admins to see Plugins
- Sharing Ad Revenue among Users of a Multisite in a Collaborative Model?
- While using WordPress Multisite is it possible to display data to main site from subsites?
- Prevent multisite sites from using a plugin
- Is it possible to run plugin code when a multisite blog is deleted?
- Multi domain, multi sites with different themes and content
- Getting Custom Post Type content from main-site of a Multisite
- How to assign user a role if none is present when logging in
- How do I add a widget programmatically to a newly created site (WPMU) within a plugin?
- Duplicate settings of master blog to slave blogs in WP multi-site installation
- How can a plugin run a script after being updated in MultiSite?
- Network-Wide Plugin Settings Management
- How can I list only sites that use a particular theme or plugin?
- Aggregate Summaries of Posts of Different Blogs in Multisite Instance
- Missing argument 2 for wpdb::prepare() Issue
- Posts wont expire
- Hook (upgrader_process_complete) running moment
- WordPress plugin DB upgrade
- Multisite functions to communicate with individual site functions
- WordPress network: set themes and plugins for new blog
- Is there a way to share content amongst wordpress sites
- I’m trying to create security question field for my login page
- What is the function to get plugin base url in multisite?
- Why users disable the WordPress update?
- Upgrading WordPress 4.0 asks for FTP password
- Any way to force a specific plugin to use single site tables in multisite installation?
- How to make wp multisite subdomain exist search
- How to Call Function From Separate WordPress Install on Same Server?
- Specific plugin script not working on subdomain
- Coming soon pages with rest of site in maintenance mode
- Query Shortcode from a multisite to appear on a different site?
- How to enable Admins to see Plugins
- How do plugin updates work?
- Automatization for automatization
- How know the “admin” blog from wordpress multisite?
- Multiple Accounts on 1 email – Multisite
- Show image or notification on specific blog in multisite
- What is a good way to test that plugin upgrades have completed properly?
- Force Network Activated Plugin to Run After Site Level Plugins
- Is there going to an issue running different features of WP site in different subdomains?
- installed WordPress but can’t upgrade or add plugins due to webdav https?
- Plugin on all site except primary one
- WordPress MU LDAP connection failures
- How to set the default options on an existing plugin in a WP MU new user install
- Custom plugin breaks css.php on Multisite
- Check if user is in a group of another site within multisite network [closed]
- Plugin menu replaced by another plugin?
- WPMU site in subdirectory: When I clone a site with NS Cloner Pro plugin, how do I remove the subdirectory from the URL?
- Integrating planning tools in wordpress
- WordPress internationalization + domains
- Internationalization of Blog Posts
- Active Plugins for current blog in WP Multisite Network? [duplicate]
- WordPress multisite haml templates
- Plugin De/Activation Not Firing On MultiSite install
- Trying to output a “Most visited blogs” list in wordpress multisite
- Pulling sub-site content into specific pages
- Managing database tables in WordPress multisite
- I want to create a Visual Recipe site on WordPress, any suggestions or tips on how i can do it? [closed]
- Add custom fields in the new and edit the site forms without touching the WP core
- Can’t upgrade themes or plugins after upgrading WordPress to 4.4
- Frontpage Admin Bar Disappeared
- why i cannot see some plugins while they are enabled on network admin page?
- Turning Existing Eccommerce Site into Multi-SIte
- turn off WooCommerce for a site in a multi site environment
- Check Plugins in Use by Mutli Site Network
- Change email notification language based on the site language in WPForms
- WordPress Multisite Plugin Activation Issue
- Change homepage logo for each site multisite setup
- WordPress multisite on different subfolders can’t install plugin via network
- How prevent STDOUT of Plugin_Upgrader->upgrade(…)?
- How to configure redis object cache for multiple sites in the same server without errors
- How to resolve Multisite Speed issues