isotopsweden / wp-hercules
This package is abandoned and no longer maintained.
No replacement package was suggested.
Simple domain mapping for top domains
Package info
github.com/isotopsweden/wp-hercules
Type:wordpress-muplugin
pkg:composer/isotopsweden/wp-hercules
v1.1.0
2016-12-07 13:59 UTC
Requires
- php: ^5.5.9 || ^7.0
- composer/installers: ~1.0
Requires (Dev)
- frozzare/wp-test-suite: ~1.0
- isotopsweden/isotopcs: dev-master
This package is auto-updated.
Last update: 2023-03-01 00:11:42 UTC
README
Requires PHP 5.5.9 and WordPress 4.5
Simple domain mapping for top domains.
Installation
composer require isotopsweden/wp-hercules
Usage
Create wp-content/sunrise.php
<?php // Default mu-plugins directory if you haven't set it. defined( 'WPMU_PLUGIN_DIR' ) or define( 'WPMU_PLUGIN_DIR', WP_CONTENT_DIR . '/mu-plugins' ); require WPMU_PLUGIN_DIR . '/wp-hercules/sunrise.php';
Additionally, in order for sunrise.php to be loaded, you must add the following to your wp-config.php:
define( 'SUNRISE', 'on' );
Create new site
With Hercules installed you should use wp-cli to add new site instead of network/site-new.php, this is because that Hercules modifies wp site create command so you can add a domain instead of just a slug, SUBDOMAIN_INSTALL should be set to true
wp site create --slug=example.com
License
MIT © Isotop