1. 首页
  2. WordPress 函数手册

get_user_id_from_string()

get_user_id_from_string( string $string )

从电子邮件地址或登录名获取数字用户ID。
Get a numeric user ID from either an email address or a login.

目录锚点:#说明#参数#返回#源码


说明(Description)

另见函数 get_user_by()


参数(Parameters)

参数 类型 必填 说明
$string (string) 必需 电子邮件地址或登录名。

返回(Return)

(int)


源码(Source)

get_user_id_from_string() 函数的代码位于 wp-includes/ms-functions.php
更新版本 源码位置 使用 被使用
3.6.0 wp-includes/ms-deprecated.php:340 0 3

get_user_id_from_string() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_user_id_from_string/