akcjaod 5.6.0
wp_authorize_application_password_form_approved_no_js
Opis — z kodu źródłowego
Fires in the Authorize Application Password new password section in the no-JS version.
In most cases, this should be used in combination with the {@see 'wp_application_passwords_approve_app_request_success'} action to ensure that both the JS and no-JS variants are handled.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$new_password | string | The newly generated application password. |
$request | array | The array of request data. All arguments are optional and may be empty. |
$user | \WP_User | The user authorizing the application. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_authorize_application_password_form_approved_no_js', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_authorize_application_password_form_approved_no_js', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii