wp_authorize_application_password_form хук-событие . WP 5.6.0
Fires in the Authorize Application Password form before the submit buttons.
Использование
add_action( 'wp_authorize_application_password_form', 'action_function_name_1817', 10, 2 ); function action_function_name_1817( $request, $user ){ // action... }
- $request(массив)
The array of request data. All arguments are optional and may be empty.
-
app_name(строка)
The suggested name of the application. -
success_url(строка)
The url the user will be redirected to after approving the application. - reject_url(строка)
The url the user will be redirected to after rejecting the application.
-
- $user(WP_User)
- The user authorizing the application.
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/authorize-application.php
wp_authorize_application_password_form
wp-admin/authorize-application.php 241
do_action( 'wp_authorize_application_password_form', $request, $user );
wp-admin/authorize-application.php 211
do_action( 'wp_authorize_application_password_form', $request, $user );