Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Action Reference/grant super admin

This page is marked as incomplete. You can help Codex by expanding it.


The 'grant_super_admin' action hook triggers any time a users "Super Admin" status is changed.

A Note About Capabilities

Super Admin is 'not' an actual role object in WordPress (unlike Subscriber, Contributor, Editor, etc), but a special "user status". As such, in order to give Super Admins new Capabilities you must add the capabilities directly to the users, not the Super Admin role (which does not exist).

A list of WordPress Super Admins is stored in your WordPress install's 'site_admins' site options record.


(int) (required) The user's ID
Default: None

Source File

'grant_super_admin' is location in wp-admin/includes/ms.php