wp_authenticate

动作钩子
do_action_ref_array( 'wp_authenticate', array( &$credentials['user_login'], &$credentials['user_password'] )
参数
  • (string) $user_login Username (passed by reference).
    Required:
  • (string) $user_password User password (passed by reference).
    Required:
定义位置
相关勾子
authenticatewp_authenticate_userwp_titlethe_titlewp_uninitialize_site
相关方法
wp_authenticatewp_authenticate_cookiewp_authenticate_spam_checkwp_checkdatewp_authenticate_email_passwordwp_attachment_is_image
引入
1.5.1
弃用
-

在用户被认证之前触发。

传递给回调的变量是通过引用传递的,可以被回调函数修改。

do_action_ref_array( 'wp_authenticate', array( &$credentials['user_login'], &$credentials['user_password'] ) );