2017 © Pedro Peláez
 

library wp-domain-map

Simplified domain mapping for WordPress Networks

image

nowzoo/wp-domain-map

Simplified domain mapping for WordPress Networks

  • Tuesday, April 7, 2015
  • by cdcarson
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

NowZoo WordPress Domain Mapping

Simplified domain mapping for WordPress networks, installed via Composer., (*1)

This package is meant for WordPress installations already using Composer. If you need a "normal" WordPress plugin, that you can install without Composer, you might try MU Domain Mapping. We might turn this into a plugin at some point., (*2)

Why?

I got frustrated with MU Domain Mapping -- it's too complicated for the purposes of a small network., (*3)

Some advantages of this code:, (*4)

  • Custom domain information is stored in one site option.
  • The home and siteurl options for each blog are ignored and not changed.
  • Works well with a mix of subdomain sites and sites with custom domains.
  • It's independent of DNS. You don't have to tell it IP addresses or CNAMEs.

Installation

$ composer require nowzoo/wp-domain-map

After installation, copy sunrise.php (included in the package root directory) to the wp-content directory., (*5)

Instantiate the admin panel by including this code somewhere (e.g in wp-content/mu-plugins/index.php):, (*6)

<?php
NowZoo\WPDomainMap\AdminSettingsPanel::inst();

Of course, you need to include the autoloader before this. I put this at the top wp-config.php:, (*7)

require_once __DIR__ . '/vendor/autoload.php';

The Versions

07/04 2015

dev-master

9999999-dev https://github.com/nowzoo/wp-domain-map

Simplified domain mapping for WordPress Networks

  Sources   Download

MIT

The Requires

 

by Christopher Carson

wordpress domain

06/04 2015

v0.2

0.2.0.0 https://github.com/nowzoo/wp-domain-map

Simplified domain mapping for WordPress Networks

  Sources   Download

MIT

The Requires

 

by Christopher Carson

wordpress domain

06/04 2015

v0.1

0.1.0.0 https://github.com/nowzoo/wp-domain-map

Simplified domain mapping for WordPress Networks

  Sources   Download

MIT

The Requires

 

by Christopher Carson

wordpress domain