Network Admin “You do not have sufficient permissions to access this page.”

I have had trouble logging into WP-Admin with my admin account. I have reset my password, and I can now log-in to WP-Admin, but cannot reach Network Admin (/wp-admin/network), instead receiving “You do not have sufficient permissions to access this page.” What do I need to do to restore the permissions the account had before … Read more

Post and Page Inheritance to subsites in a WordPress Network

I have to develop a multi-country, multi-lingual website. One country may have multiple languages. I have setup a WordPress Network and created subsites for each country like following. abc.com/ > Global Website abc.com/usa > USA Website abc.com/fra > France Website I am detecting Countries through Geo Location API and forcefully redirect them to their own … Read more

How do I change the Multisite URL?

The links in the navbar menu, in (My sites > Manage the network) are pointing (and keep redirecting) to incorrect URLs. The incorrect URLs are in this pattern: https://https//www.domain.com/wp-admin/network/ https://https//www.domain.com/wp-admin/network/sites.php https://https//www.domain.com/wp-admin/network/settings.php Even if I manually entered the correct URL without the repeated https, I am redirected to the wrong URL again. It seems that https//www … Read more

Add additional Network constants to wp-config.php dynamically

When starting with a fresh Network install, the first step is a single site install that has one additional line in the wp-config.php file: define( ‘WP_ALLOW_MULTISITE’, true ); After that we have to go to Tools > Network Setup, enter some details like network name and super admin email and finally hit the button to … Read more

How to add field for new site-wide option on Network Settings screen?

I’m working on a plugin, and part of it involves setting an option value that applies to all sites in a WordPress network. I know about the add_site_option and get_site_option functions that let you save the value into the wp_sitemeta table, but what I can’t figure out is how to place the fields in the … Read more