multisite: global menu containing network site links?

[*] get_sites() will get a list of the sites in a Multisite network. You can then use switch_to_blog()[*], get_posts() / get_pages(), and restore_current_blog()[*] to get the pages from the various sites. I’d strongly recommend storing the results as a sitewide option using update_site_option() to lessen the load on your server. You could add a job … Read more

Is there a way to run upgrade.php for one blog?

WP CLI has a command that can upgrade the database: wp core update-db If that command doesn’t upgrade the entire network, you can pass in the site you want upgraded as an additional parameter e.g. wp core update-db –site=”http://example.com/testsite/” You can get WP CLI from here: http://wp-cli.org it’s also available on github You can install … Read more

How to hide plugin from WordPress Multisite admin plugin list

There’s a filter called all_plugins that seems to do the trick for me: add_filter( ‘all_plugins’, ‘wpse156903_hide_plugins’ ); function wpse156903_hide_plugins( (array) $plugins ) { // let’s hide akismet if( in_array( ‘akismet/akismet.php’, array_keys( $plugins ) ) ) { unset( $plugins[‘akismet/akismet.php’] ); } // hide multiple plugins $hidearr = array( ‘plugin1/plugin-file.php’, ‘plugin2/plugin-file2.php’, // and so on ); foreach( … Read more

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 domain, this would work for: mysub1.multisiteroot.com, mysub2.multisiteroot.com, etc. If you wanted to us different domain names for subsites, then you’d need to have those domain names point to … Read more