WP Manifestindependent plugin directory
manifest / multisite / wordpress-network-subdomain-updater-plugin

Network Sub-Domain Updater

A WordPress mu-plugin that updates network (multisite) sub-domains after MySQL data import.

by Daniel M. Hendricks · github.com/dmhendricks/wordpress-network-subdomain-updater-plugin

5stars
14release downloads
≈10active sites
3forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/dmhendricks/wordpress-network-subdomain-updater-plugin/releases/download/1.0.4/network-subdomain-updater-1.0.4.zip

From the readme

Network Sub-domain Updater for WordPress A simple MU plugin that updates the primary domain on WordPress Network installations. It was primarily created for development and staging environments to make it easier when you sync data from a production site. Use are your own risk. This plugin is useless to you if you are not running a WordPress Network in Subdomain mode! :pushpin: Use in conjunction with: Rewrite Content URLs How It Works Let's say you run a WordPress Network of sub-domains. If you did a MySQL dump from your production server (example.com) and then imported to your staging (staging.example.com) or local development (example.local) instance, the primary domain would no longer match the environment. This plugin checks to see if the primary domain changed, and if so, updates the sub-sites and relevant database fields. For example, I use Local by Flywheel for local WordPress development: 1. Create a local WordPress multisite instance. 2. Copy necessary file assets (plugins, themes, uploads, etc) from the remote site. 3. Add this mu-plugin to your local instance's mu-plugins directory. 4. Define the appropriate constants in wp-config.php. Now, each time that you im

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
1.0.4Apr 15, 2018network-subdomain-updater-1.0.4.zip9
1.0.3Apr 15, 2018network-subdomain-updater-1.0.3.zip5

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.