akcjaod 5.6.0
wp_authorize_application_password_form
Opis — z kodu źródłowego
Fires in the Authorize Application Password form before the submit buttons.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$request | array | { The array of request data. All arguments are optional and may be empty. @type string $app_name The suggested name of the application. @type string $success_url The URL the user will be redirected to after approving the application. @type string $reject_url The URL the user will be redirected to after rejecting the application. } |
$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', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_authorize_application_password_form', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii