Skip to main content
Share Your Experience: Take the 2024 Developer Survey
11 votes

How do I change the Multisite URL?

There are 5 values need to change. From database. wp_options: options named “siteurl” and “home” wp_site wp_sitemeta: the option named “siteurl” wp_blogs: any entries in the “domains” column that ...
Дтдця's user avatar
10 votes
Accepted

WPMU vs WordPress MultiSite is there a difference anymore?

Since version 3.0 there is no such product as "multisite" neither by name nor by code (mostly anyway), it is just another configuration option of wordpress, one that requires some extra admin work to ...
Mark Kaplun's user avatar
  • 23.4k
5 votes
Accepted

Multisite: How to store global options vs. site options?

There are functions for saving and retrieving network-wide options: add_network_option(); update_network_option(); get_network_option(); The values of these options are stored in wp_sitemeta.
Jacob Peattie's user avatar
3 votes
Accepted

WP Multisite - domain mapping to domain.com and separate site to domain.com/help

Yes, this is possible (see https://wordpress.org/support/article/create-a-network/). For sub-domains you'll need to confirm that your DNS has a wildcard entry for your domain. So, based on your root ...
deronimo's user avatar
  • 166
3 votes
Accepted

Timeout While Upgrading Network in Multi-site

I was using WordPress Multisite for multiple TLDs. Example: domain.com another-domain.org sample-domain.net The primary site was domain.com which was a valid registered domain name with proper ...
Michael Ecklund's user avatar
2 votes

How do I check if the user is a site owner in a network?

The 'activate_plugins' roll only works if superadmin has enabled that privilege in network settings, which they often don't -- it's disabled by default. The proper way is to use the 'administrator' ...
Ted's user avatar
  • 51
2 votes
Accepted

Network of multisites in Wordpress, create new site with all the contents of the main

You can use Multisite Clone Duplicator plugin.
KAGG Design's user avatar
  • 1,842
2 votes

How do I change the Multisite URL?

The multisite URLs are available for editing on the Network Admin, Sites page, then edit the subsites (click on a subsite's edit link, then the Settings tab). You can only do this for subsites. The '...
Rick Hellewell's user avatar
2 votes
Accepted

How to exclude specified from all list of Multisite

I'd recommend using get_sites() instead of crafting $wpdb calls. Add this code to your theme's functions.php file. function wpse365255_print_sites() { $args = array( 'number' => 10000,...
Pat J's user avatar
  • 11.9k
2 votes
Accepted

How to wordpress multi site

I think to explain it all here is a bit beyond the scope. Perhaps it is best to start here, and then you can ask detailed questions if you encounter problems:https://www.wpbeginner.com/wp-tutorials/...
Georg's user avatar
  • 36
2 votes

400 Bad Request when sending XHR from React.js to admin-ajax.php

Solved by adding an action to handle unauthenticated users: add_action('wp_ajax_nopriv_xhrLink', 'handleXhrLink');
Sean D's user avatar
  • 367
1 vote

Multisite Network Admin

I'm guessing you have an extra https// in your site configuration somewhere. If you look in wp-config.php you should have define( 'MULTISITE', true ); define( 'DOMAIN_CURRENT_SITE', 'www.maxray.com.tr'...
Rup's user avatar
  • 4,277
1 vote
Accepted

Programmatically creating site in a network

You're using $user_id = get_option( 'admin_email' ); and then using that $user_id. However, get_option( 'admin_email' ); returns an email address, not the int that wpmu_create_blog() expects. So your ...
Pat J's user avatar
  • 11.9k
1 vote

Is there a filter called 'network_admin_init'?

You could restrict your admin_init callback with e.g. a is_network_admin() check.
birgire's user avatar
  • 67.3k
1 vote
Accepted

Problem in Internationalizing a plugin built for network level usage

The third parameter to load_plugin_textdomain function should only be the plugin name suffixed with the language folder. It does not need the absolute path to the language folder. For e.g. in my ...
Talha Imam's user avatar
1 vote

How do I change the Multisite URL?

You have to change at two places: 1- in Database wp_blogs table change example.com to www.example.com 2- in wp-config.php change define('DOMAIN_CURRENT_SITE', 'example.com'); to define('...
Shahzaib Chadhar's user avatar
1 vote
Accepted

Can't create a subdomain network - and WP is installed in webroot, not a folder

You need to have domain name resolution in order for subdomain Multisite to work. If you don't have a Domain Name Server, you can modify your computer (not your server) hosts file. Then, make sure ...
fergbrain's user avatar
  • 450
1 vote

switch_to_blog() not functioning while querying post_types, Why?

There appear to be a couple things at work here: The switch_to_blog() call does not switch plugins (see ticket #14941), so if your custom post types are defined in a plugin (as they most likely are ...
Pat J's user avatar
  • 11.9k
1 vote
Accepted

Wordpress Multisite - Auto enable theme

Unfortunately, no. For something like that to work, WordPress (or some plugin to do that) would need to scan themes folder for changes, and that can be performance intensive operation. Maybe with some ...
Milan Petrovic's user avatar
1 vote
Accepted

WordPress Multisite with subdomains on different domains

Did you try to assign the appropriate subdomains using 301 redirections? I think it would be possible if you run all these websites on one server. Create multisite with subdomains in one domain ...
skowi's user avatar
  • 61
1 vote

Multisite network admin – URL / redirect error

network admin_url filter can rewrite network admin url. But i don't know it is a best way or not. // wp-config.php /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-...
KiKiKi's user avatar
  • 11
1 vote

Add additional Network constants to wp-config.php dynamically

I haven't tested this, but if you would need to find such a solution, I would probably try to do it in the following way by adding a script into the if ( SOME_CHECK_IF_STEP-1_WAS_PASSED ) condition ...
Alain Schlesser's user avatar
1 vote

Generate a user list per site to communicate upgrade plans

I have no idea if there are any plugin allowing this, but if you don't mind using a bit of SQL you can extract it this way: SELECT u.ID, u.user_login, u.user_email, u.user_registered, u.display_name, ...
Jonathan Pasquier's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible