---
title: Must Use Plugins - Auto Updating
date: 2025-02-22T15:03:01Z
modified: 2025-02-22T15:05:14Z
permalink: "https://techarticles.co.uk/must-use-plugins-auto-updating/"
type: post
status: publish
excerpt: ""
wpid: 4564
categories:
  - Automation
  - Coding
  - Plugins
  - Wordpress
timestamp: 2025-02-22T15:05:14Z
tags:
  - Automation
  - Coding
  - Plugins
  - Wordpress
---

I use a few MU plugins, but the issue with MU plugins is updating them is a laborious affair, particularly for the ones I have on multi sites running my [Multi-site Sandbox API](https://github.com/stingray82/multisite-plugin-sandbox) due to the extra security I have to take them down, do the modification and put them all back up but this is troublesome and of cause means downtime.

So I’ve been working on a method to update them remotely like I do my other plugins and my Taper monkey scripts, which are all stored locally on my PC, then synced to an FTP instance for access using [SyncBackPro](https://ta0.uk/syncbackpro), so I can edit them and quickly distribute the updates.

This was the overall goal when it came to my MU plugins: almost an identical workflow, so I set about testing solutions, and after writing a small update API and adding some additional security like unique API keys, Domain and IP address whitelisting, I had a workable solution.

This solution polls my public update server and the API endpoint every 6 hours for updates to my mu-plugins, and from there, if an update exists, it overwrites itself with the update this means that updates need to be thoroughly tested, as there is no pulling back a release it is almost instant.

I have, therefore, built a locally hosted WP instance for just this purpose it pulls a test mu-plugin from the test version of the API, which is always 1 version ahead and allows me to quickly test before deploying for silly coding errors, I am still in early days of testing this solution but if there is interest I will look to package it up and make it available