revoke_super_admin WordPress Action Hook
The revoke_super_admin hook is used to revoke the super admin status of a user. This hook is triggered when a user is removed from the list of super admins in the site settings.
do_action( 'revoke_super_admin', int $user_id ) #
Fires before the user’s Super Admin privileges are revoked.
Parameters
- $user_id
(int)ID of the user Super Admin privileges are being revoked from.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |