钩子文档

wp_authenticate_application_password_errors

💡 云策文档标注

概述

wp_authenticate_application_password_errors 是一个 WordPress Hook,在应用密码验证成功后触发,允许插件添加额外约束以阻止应用密码的使用。

关键要点

  • 触发时机:当应用密码被成功验证为有效时
  • 主要用途:插件可利用此 Hook 实施额外安全检查或限制
  • 参数:$error(WP_Error 对象)、$user(WP_User 对象)、$item(应用密码详情数组)、$password(原始密码字符串)
  • 相关函数:wp_authenticate_application_password() 用于用户认证
  • 引入版本:WordPress 5.6.0

📄 原文内容

Fires when an application password has been successfully checked as valid.

Description

This allows for plugins to add additional constraints to prevent an application password from being used.

Parameters

$errorWP_Error
The error object.
$userWP_User
The user authenticating.
$itemarray
The details about the application password.
$passwordstring
The raw supplied password.

Source

do_action( 'wp_authenticate_application_password_errors', $error, $user, $item, $password );

Changelog

Version Description
5.6.0 Introduced.