revoked_super_admin
Action HookDescription
Fires after the user's Super Admin privileges are revoked.Hook Information
File Location |
wp-includes/capabilities.php
View on GitHub
|
Hook Type | Action |
Line Number | 1269 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$user_id
|
ID of the user Super Admin privileges were revoked from. |
Usage Examples
Basic Usage
<?php
// Hook into revoked_super_admin
add_action('revoked_super_admin', 'my_custom_function', 10, 1);
function my_custom_function($user_id) {
// Your custom code here
}
Source Code Context
wp-includes/capabilities.php:1269
- How this hook is used in WordPress core
<?php
1264 *
1265 * @since 3.0.0
1266 *
1267 * @param int $user_id ID of the user Super Admin privileges were revoked from.
1268 */
1269 do_action( 'revoked_super_admin', $user_id );
1270 return true;
1271 }
1272 }
1273 return false;
1274 }
PHP Documentation
<?php
/**
* Fires after the user's Super Admin privileges are revoked.
*
* @since 3.0.0
*
* @param int $user_id ID of the user Super Admin privileges were revoked from.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/capabilities.php
Related Hooks
Related hooks will be displayed here in future updates.