nowzoo/wp-domain-map 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nowzoo/wp-domain-map

最新稳定版本:v0.2

Composer 安装命令:

composer require nowzoo/wp-domain-map

包简介

Simplified domain mapping for WordPress Networks

README 文档

README

Simplified domain mapping for WordPress networks, installed via Composer.

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.

Why?

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

Some advantages of this code:

  • 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.

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

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

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

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

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固