Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_authenticate_application_password_errors

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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