首页 WordPress函数大全 get_user_id_from_string()

get_user_id_from_string()

2020-05-02 / 5321阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

Warning: This function has been deprecated. Use get_user_by() instead.

get_user_id_from_string( string $string )

Get a numeric user ID from either an email address or a login.

描述

A numeric string is considered to be an existing user ID and is simply returned as such.

See also See also

  • get_user_by()

Top ↑

参数

$string

(string)
(Required)
Either an email address or a login.

返回

(int)

大家谈论
    我的见解