granted_super_admin WordPress Action Hook

This hook is called when a user is granted super admin privileges. It allows for custom code to be executed when a user is given this role. This could be used, for example, to send a notification to the user or to log the event.

do_action( 'granted_super_admin', int $user_id ) #

Fires after the user is granted Super Admin privileges.


Parameters

$user_id

(int)ID of the user that was granted Super Admin privileges.


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.