revoked_super_admin WordPress Action Hook

The revoked_super_admin hook is called whenever a super admin is removed from the site. This hook can be used to trigger a notification or email to the user that their super admin privileges have been removed.

do_action( 'revoked_super_admin', int $user_id ) #

Fires after the user’s Super Admin privileges are revoked.


Parameters

$user_id

(int)ID of the user Super Admin privileges were revoked from.


Top ↑

Source

File: wp-includes/capabilities.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.