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 |
---|---|
407 | * This allows for plugins to add additional constraints to prevent an application password from being used. |
408 | * |
409 | * @since 5.6.0 |
410 | * |
411 | * @param WP_Error $error The error object. |
412 | * @param WP_User $user The user authenticating. |
413 | * @param array $item The details about the application password. |
414 | * @param string $password The raw supplied password. |
415 | */ |
416 | do_action( 'wp_authenticate_application_password_errors', $error, $user, $item, $password ); |
417 |
|
418 | if ( is_wp_error( $error ) && $error->has_errors() ) { |
419 | /** This action is documented in wp-includes/user.php */ |
420 | do_action( 'application_password_failed_authentication', $error ); |
421 |
|
422 | return $error; |
423 | } |
424 |
|
425 | WP_Application_Passwords::record_application_password_usage( $user->ID, $item['uuid'] ); |