wp_authorize_application_password_form
Action HookDescription
Fires in the Authorize Application Password form before the submit buttons. }Hook Information
File Location |
wp-admin/authorize-application.php
View on GitHub
|
Hook Type | Action |
Line Number | 266 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$request
|
{ The array of request data. All arguments are optional and may be empty. |
WP_User
|
$user
|
The user authorizing the application. |
Usage Examples
Basic Usage
<?php
// Hook into wp_authorize_application_password_form
add_action('wp_authorize_application_password_form', 'my_custom_function', 10, 2);
function my_custom_function($request, $user) {
// Your custom code here
}
Source Code Context
wp-admin/authorize-application.php:266
- How this hook is used in WordPress core
<?php
261 * @type string $success_url The URL the user will be redirected to after approving the application.
262 * @type string $reject_url The URL the user will be redirected to after rejecting the application.
263 * }
264 * @param WP_User $user The user authorizing the application.
265 */
266 do_action( 'wp_authorize_application_password_form', $request, $user );
267 ?>
268
269 <?php
270 submit_button(
271 __( 'Yes, I approve of this connection' ),
PHP Documentation
<?php
/**
* Fires in the Authorize Application Password form before the submit buttons.
*
* @since 5.6.0
*
* @param array $request {
* 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.
* }
* @param WP_User $user The user authorizing the application.
*/
Quick Info
- Hook Type: Action
- Parameters: 2
- File: wp-admin/authorize-application.php
Related Hooks
Related hooks will be displayed here in future updates.