akcjaod MU (3.0.0)
added_existing_user
Opis — z kodu źródłowego
Fires immediately after an existing user is added to a site.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$user_id | int | User ID. |
$result | true | \WP_Error | True on success or a WP_Error object if the user doesn't exist or could not be added. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'added_existing_user', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'added_existing_user', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}