WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
418 | * This allows for plugins to add additional constraints to prevent an application password from being used. |
419 | * |
420 | * @since 5.6.0 |
421 | * |
422 | * @param WP_Error $error The error object. |
423 | * @param WP_User $user The user authenticating. |
424 | * @param array $item The details about the application password. |
425 | * @param string $password The raw supplied password. |
426 | */ |
427 | do_action( 'wp_authenticate_application_password_errors', $error, $user, $item, $password ); |
428 |
|
429 | if ( is_wp_error( $error ) && $error->has_errors() ) { |
430 | /** This action is documented in wp-includes/user.php */ |
431 | do_action( 'application_password_failed_authentication', $error ); |
432 |
|
433 | return $error; |
434 | } |
435 |
|
436 | WP_Application_Passwords::record_application_password_usage( $user->ID, $item['uuid'] ); |