Known Issues in WordPress When Upgrading PHP to ver 7

WordPress recommends PHP7 and MariaDB 10.0 or higher, so your core installation should be fine. If you’re using any third-party plugins and/or themes (including ones you’ve written), you would be wise to ensure that they too are compatible with PHP7. Check the respective maintainers’ support streams (either the relevant plugin/theme pages on wordpress.org or the … Read more

How can I map the primary domain for subsite as subdirectory for another domain?

If you’re trying to achieve: installdomain.com sub.installdomain.com sub.installdomain.com/sub2 OR installdomain.com installdomain.com/sub/ installdomain.com/sub/sub2 You’re describing a Network of Networks. InstallDomain is a network (aka multisite), and has a site named Sub. The site Sub is also a network. The Sub network has a site named Sub2. There are a lot of things to take into consideration, … Read more

How to get current logged-in user details in multisite?

As described in the documentation, you have call this inside a hook. For wordpress versions < 3.4: use the init or any subsequent action to call this function. Calling it outside of an action can lead to troubles. See #14024 for details. Example: add_action(‘init’, ‘get_user_email’); function get_user_email() { $logged_in_user = wp_get_current_user(); if($logged_in_user->ID != 0){ $email … Read more

Allow editors to switch sites (Multisite)

Although question is not quite clear to me, because: ==case 1== if you have multisite WP, then users are shared with same username/password/etc). Just you should set the roles individually per sub-site. But if there are many users and you want to automatize the process, you can use: https://wordpress.org/plugins/multisite-user-sync/ https://wordpress.org/plugins/multisite-user-role-sync/ or some similar alternatives update: … Read more