Häufig gestellte Frage

Superadmin für Multisite anlegen

Zuletzt aktualisiert vor 4 Jahren

Extrem einfach:

In der function.php eines aktiven Themes folgenden Eintrag setzen:

grant_super_admin(1);

Anstelle der "1" muss die User-ID (siehe Datenbanktabelle wp_users) des entsprechenden Benutzer eingetragen werden, der die Rechte bekommen soll.
Danach im BackEnd einmal die Benutzerübersicht aktualisieren und siehe da:
"user1 — Super-Administrator"
Nun sollte die Zeile in der function.php wieder gelöscht werden.



Offizielle Dokus (viel zu umständlich):

Quelle: http://www.wpbeginner.com/wp-tutorials/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql/
Tabelle wp_users:

  • ID – pick a number (in our example, we will use the number 4).
  • user_login – insert the username you want to use to access the WordPress Dashboard.
  • user_pass – add a password for this username. Make sure to select MD5 in the functions menu (Refer to the screenshot below).
  • user_nicename – put a nickname or something else that you would like to refer yourself as.
  • user_email – add the email you want to associate with this account.
  • user_url – this would be the url to your website.
  • user_registered – select the date/time for when this user is registered.
  • user_status – set this to 0.
  • display_name – put the name you like to display for this user on the site (it can be your user_nicename value as well).


Tabelle wp_usermeta:

  • unmeta_id – leave this blank (it will be auto-generated)
  • user_id – this will be the id of the user you created in the previous step. Remember we picked 4.
  • meta_key – this should be wp_capabilities
  • meta_value – insert this: a:1:{s:13:"administrator";s:1:"1";}

Insert another row with the following information:

  • unmeta_id – leave this blank (it will be auto-generated)
  • user_id – this will be the id of the user you created in the previous step. Remember we picked 4.
  • meta_key – this should be wp_user_level
  • meta_value – 10


Bitte warten!

Bitte warten... es dauert eine Sekunde!