How Access Multiple WordPress sites with a single login

In both wp-config.php files, change the following defines: define(‘COOKIE_DOMAIN’, ‘.test.oursite.com’); define(‘COOKIEHASH’, md5(‘test.oursite.com’)); to: define(‘COOKIE_DOMAIN’, ‘.oursite.com’); define(‘COOKIEHASH’, md5(‘oursite.com’)); Go to test.oursite.com/wp-admin/ and login as an administrator. Go to Users -> Your Profile and click on Update Profile button. Now go to forums.oursite.com/wp-admin/. You should be logged in there. If synchronization plugins in mu-plugins for both sites … Read more

How to create a network using a command line script?

Since you’re already using WP-CLI, I recommend you to use the wp core multisite-install command to set up your network installation. When you check out the documentation you’ll see that it’s pretty straightforward. Here’s the example from the docs: $ wp core multisite-install –title=”Welcome to the WordPress” \ > –admin_user=”admin” –admin_password=”password” \ > –admin_email=”[email protected]” Single … Read more

How to add values to media “whitelist_options” in wp-admin/options.php template?

firstly, don’t edit core files of WordPress or your changes will be erased at the next update. in the file options.php look below this array declaration, you have this line : $whitelist_options = apply_filters( ‘whitelist_options’, $whitelist_options ); that means that you can custom this array with this code in a plugin or the theme : … Read more

Changing path for media upload folder in wordpress multisite

This has been answered Hook filter to change wp_upload_dir() path in multisite , including code to hook into the upload_dir hook. Note that there is a setting in wp-config.php for the ‘base’ upload folder define(‘UPLOADS’, ‘wp-content/myimages’); So with this code, the uploads folder is wp-content/myimages. But, that changes the place WP looks for the media, … Read more

ERR_TOO_MANY_REDIRECTS IN MULTISITE NETWORK DASHBOARD

If you install your WordPress Multisite (wpms) from scratch on the server this issue should not arise. However, if you have installed your wpms on a local machine first and then moved/copied the entire installation including the database to your server, then you have to ensure that, you modify the domain in your database. I … Read more