akcjaod 5.6.0
wp_create_application_password
Opis — z kodu źródłowego
Fires when an application password is created.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$user_id | int | The user ID. |
$new_item | array | { The details about the created password. @type string $uuid The unique identifier for the application password. @type string $app_id A UUID provided by the application to uniquely identify it. @type string $name The name of the application password. @type string $password A one-way hash of the password. @type int $created Unix timestamp of when the password was created. @type null $last_used Null. @type null $last_ip Null. } |
$new_password | string | The generated application password in plain text. |
$args | array | { Arguments used to create the application password. @type string $name The name of the application password. @type string $app_id A UUID provided by the application to uniquely identify it. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_create_application_password', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_create_application_password', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii