Created
June 10, 2014 15:10
-
-
Save MikeNGarrett/080bad66e500e46fa969 to your computer and use it in GitHub Desktop.
Grant Super Admin to WordPress user in theme's functions.php
This file contains hidden or 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