Linux 软件免费装
Banner图

WP Multi Network

开发者 johnjamesjacoby
ddean
BrianLayman
rmccue
spacedmonkey
flixos90
更新时间 2022年9月21日 17:58
捐献地址: 去捐款
PHP版本: 4.9 及以上
WordPress版本: 6.1
版权: GPLv2 or later
版权网址: 版权信息

标签

admin network sites global domains

下载

2.2.0 2.5.0 2.4.0 2.5.1 2.5.2 2.4.1 2.4.2 1.1 1.3.1 1.4 1.5.1 1.6.0 1.7.0 1.5

详情介绍:

Turn your WordPress Multisite installation into many multisite networks, surrounding one global set of users.

安装:

常见问题:

Can each network have a different domain?

Yes you can. That is what this plugin does best! Think of how WordPress.org works:

Users are global, and they can login to any of those domains with the same login and password. Each of those domains has their own subdomains and subdirectories, many of which are sites or (networks of them).

Will this work on standard WordPress?

You can activate it, but it won't do anything. You need to have the multisite functionality enabled and working first.

Where can I get support?

Create a GitHub issue: https://github.com/stuttter/wp-multi-network/issues/new

What about multisite constants?

For maximum flexibility, use something like... ` // Multisite define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', false ); define( 'PATH_CURRENT_SITE', '/' ); define( 'DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST'] ); // Likely not needed anymore (your config may vary) //define( 'SITE_ID_CURRENT_SITE', 1 ); //define( 'BLOG_ID_CURRENT_SITE', 1 ); // Un-comment and change to a URL to funnel no-site-found requests to //define( 'NOBLOGREDIRECT', '/404/' ); /**

  • These are purposely set for maximum compatibility with multisite and
  • multi-network. Your config may vary. */ define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] ); define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] ); `

What about cookies?

Use something like this to allow cookies to work across networks... // Cookies define( 'COOKIEHASH', md5( 'yourrootdomain.com' ) ); define( 'COOKIE_DOMAIN', 'yourrootdomain.com' ); define( 'ADMIN_COOKIE_PATH', '/' ); define( 'COOKIEPATH', '/' ); define( 'SITECOOKIEPATH', '/' ); define( 'TEST_COOKIE', 'thing_test_cookie' ); define( 'AUTH_COOKIE', 'thing_' . COOKIEHASH ); define( 'USER_COOKIE', 'thing_user_' . COOKIEHASH ); define( 'PASS_COOKIE', 'thing_pass_' . COOKIEHASH ); define( 'SECURE_AUTH_COOKIE', 'thing_sec_' . COOKIEHASH ); define( 'LOGGED_IN_COOKIE', 'thing_logged_in' . COOKIEHASH );

Uploads?

As of version 3.5, new WordPress multisite installs use a more efficient way to serve uploaded files. Unfortunately, this doesn't play well with multiple networks (yet). Installs that upgraded from 3.4 or below are not affected. WP Multi-Network needs to be running to help set the upload path for new sites, so all networks created with this plugin will have it network activated. If you disable it on one of your networks, any new site you create on that network will store its uploaded files under that network's main site's uploads folder. It's not pretty. Just leave this plugin network-activated (or in mu-plugins) and it will take care of everything.

Can I achieve a multi-level URL path structure (domain/network/site) with a subfolder network?

To achieve nested folder paths in this fashion network1/site1, network1/site2 etc, please follow the steps in https://paulund.co.uk/wordpress-multisite-nested-paths to construct a custom sunrise.php (Thanks to https://paulund.co.uk for providing these steps).

Where can I find documentation?

Not much to talk about really. Check the code for details!

更新日志:

2.5.2 2.5.1 2.5.0 2.4.2 2.4.1 2.4.0 2.3.0 2.2.1 2.2.0 2.1.0 2.0.0 1.8.1 1.8.0 1.7.0 1.6.1 1.6.0 1.5.1 1.5 1.4.1 1.4 1.3.1 1.3 1.2 1.1 1.0 Getting started.