wp_authorize_application_password_form
Fires in the Authorize Application Password form before the submit buttons.
Usage
add_action( 'wp_authorize_application_password_form', 'wp_kama_authorize_application_password_form_action', 10, 2 ); /** * Function for `wp_authorize_application_password_form` action-hook. * * @param array $request The array of request data. All arguments are optional and may be empty. * @param WP_User $user The user authorizing the application. * * @return void */ function wp_kama_authorize_application_password_form_action( $request, $user ){ // action... }
- $request(array)
The array of request data. All arguments are optional and may be empty.
-
app_name(string)
The suggested name of the application. -
success_url(string)
The URL the user will be redirected to after approving the application. - reject_url(string)
The URL the user will be redirected to after rejecting the application.
-
- $user(WP_User)
- The user authorizing the application.
Changelog
Since 5.6.0 | Introduced. |
Where the hook is called
In file: /wp-admin/authorize-application.php
wp_authorize_application_password_form
wp-admin/authorize-application.php 266
do_action( 'wp_authorize_application_password_form', $request, $user );