WordPress.org

Ready to get started?Download WordPress

Codex

Plugin API/Action Reference/grant super admin

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

Contents

Description

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.

Parameters

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

Source File

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

Related