grant_super_admin WordPress Action Hook
The grant_super_admin hook is used to programmatically grant a user the Super Admin role in WordPress. This hook is typically used in conjunction with the create_user action hook.
do_action( 'grant_super_admin', int $user_id ) #
Fires before the user is granted Super Admin privileges.
Parameters
- $user_id
(int)ID of the user that is about to be granted Super Admin privileges.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |