Created
March 27, 2018 20:02
-
-
Save EastSideCode/258cbce64d977dcdf4fa43e4b9df7f3a to your computer and use it in GitHub Desktop.
Grant super admin access for WordPress multisite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include(ABSPATH . 'wp-admin/includes/ms.php'); | |
$user = get_userdatabylogin('YOUR_USERNAME'); | |
grant_super_admin($user->ID); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment