Codex

Function Reference/get user id from string

Contents

Description

Get a numeric user ID from either an email address or a login. If a number is sent to the function, that number is returned as the id.

Usage

<?php get_user_id_from_string$string ); ?>

Parameters

$string
(string) (required)
Default: None

Return Values

(int) 

Source File

get_user_id_from_string() is located in wp-includes/ms-functions.php