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', '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(массив)

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 258
do_action( 'wp_authorize_application_password_form', $request, $user );

Где используется хук в WordPress

Использование не найдено.