akcjaod 3.0.0
grant_super_admin
Opis — z kodu źródłowego
Fires before the user is granted Super Admin privileges.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$user_id | int | ID of the user that is about to be granted Super Admin privileges. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'grant_super_admin', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'grant_super_admin', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii