Is there a filter called ‘network_admin_init’?
You could restrict your admin_init callback with e.g. a is_network_admin() check.
You could restrict your admin_init callback with e.g. a is_network_admin() check.
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
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
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
You mean something like: Active Plugins which is a plugin that Generates a list of plugins that are currently in use and Does not include primary blog, network activated plugins, or plugins with 0 users.
o.k. the problem is based on a conflict in some of the filters of the tinyMCE, maybe only when it’s a network setup (i don’t know exactly which filters are conflicted) but i managed to solved it by: 1. installing tinyMCE Advanced: i know this plugin isn’t supposed to work in the network setup, but … Read more
This was resolved by disabling W3-Total-Cache plugin.
Change Username?
I’m really not sure where your logic is failing and haven’t revised each one of your insert/delete hooks. But the code can be greatly simplified to only call each function once, thus making it easy to make it work. add_action( ‘wpmu_new_blog’, ‘setup_blog_wpse_114119’, 10, 2 ); function setup_blog_wpse_114119( $blog_id, $user_id ) { create_pages_wpse_114119( $blog_id, $user_id ); … Read more
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-settings.php’); // add code // define(‘__WORDPRESS_CORE_DIR__’, ‘/wordpress’); add_filter(‘network_admin_url’, ‘rewrite_my_network_admin_url’, 10, 2); function rewrite_my_network_admin_url($url, $path) { $networkPath = str_replace( ‘/wp-admin/’, __WORDPRESS_CORE_DIR__ . ‘/wp-admin/’, $url … Read more