grant_super_admin action-hook . WP 3.0.0
Fires before the user is granted Super Admin privileges.
Usage
add_action( 'grant_super_admin', 'action_function_name_530' ); function action_function_name_530( $user_id ){ // action... }
- $user_id(int)
- ID of the user that is about to be granted Super Admin privileges.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
grant_super_admin
wp-includes/capabilities.php 926
do_action( 'grant_super_admin', $user_id );