get_user_by_username()

Description

Retrieve user ID by username

Parameters

ColumnTypeDefaultDescription
$username string The username to search for (will match email if not found)

Return

mixed The matching user ID or false if not found

This article was last updated 23rd April 2025 21:35 Europe/London time based on the source file dated 8th April 2025 14:40 Europe/London time.