Skip to content

Instantly share code, notes, and snippets.

@EastSideCode
Created March 27, 2018 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EastSideCode/258cbce64d977dcdf4fa43e4b9df7f3a to your computer and use it in GitHub Desktop.
Save EastSideCode/258cbce64d977dcdf4fa43e4b9df7f3a to your computer and use it in GitHub Desktop.
Grant super admin access for WordPress multisite
<?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