How can I rename roles in a WordPress multisite installation?
I have made minor changes which can help you in achieving your desired results. We need to use network_admin_menu hook instead of init and also updated the condition of checking if the roles exist. <?php function wpmudev_custom_change_role_names_multisite() { // Here we are getting the roles of the network. $wp_roles = get_site_option(‘wp_user_roles’); // Here we are … Read more