Update siteurl and home in multisite subsites to https

Solved: Add these code to the functions.php file of your subsite’s theme, immediately after the initial ” AND READ THIS, BEFORE USING: https://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.php if ( ! is_admin() ) { $xsiteurl = get_option( ‘home’ ); $find = array( ‘http://’, ‘https://’ ); if ( $find != ‘http://’ ) { $replace=””; $pureaddress = str_replace( $find, $replace, $xsiteurl ); … Read more

How to Add Super Admin for WordPress multi-site

More information for how to manage user manually Manage This settings if ( $newpassword != ‘ ‘ && $newemail != ‘ ‘ && $newusername !=’ ‘ ) { if ( !username_exists($newusername) && !email_exists($newemail) ) { $user_id = wp_create_user( $newusername, $newpassword, $newemail); if ( is_int($user_id) ) { $wp_user_object = new WP_User($user_id); $wp_user_object->set_role(‘administrator’); grant_super_admin($user_id); // Grants Super … Read more