do_action( 'wp_authorize_application_password_form_approved_no_js', string $new_password, array $request, WP_User $user )
- Since
- 5.6.0, 5.6.1
Fires in the Authorize Application Password new password section in the no-JS version.
Description
In most cases, this should be used in combination with the 'wp_application_passwords_approve_app_request_success' action to ensure that both the JS and no-JS variants are handled.
Compatibility
- WordPress
- since 5.6.1
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$new_passwordstring- The newly generated application password.
$requestarray- The array of request data. All arguments are optional and may be empty.
$userWP_User- The user authorizing the application.
Where this hook fires · 1
wp-admin/authorize-application.php:236file scope
Source code
* @since 5.6.1 Corrected action name and signature. * * @param string $new_password The newly generated application password. * @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. */ do_action( 'wp_authorize_application_password_form_approved_no_js', $new_password, $request, $user ); else : ?> <form action="<?php echo esc_url( admin_url( 'authorize-application.php' ) ); ?>" method="post" class="form-wrap"> <?php wp_nonce_field( 'authorize_application_password' ); ?> <input type="hidden" name="action" value="authorize_application_password" /> <input type="hidden" name="app_id" value="<?php echo esc_attr( $app_id ); ?>" />Changelog
Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
5.6.1
Corrected action name and signature.from the docblock
5.6.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.